Skip to content

Update github action versions (#1712) #707

Update github action versions (#1712)

Update github action versions (#1712) #707

Workflow file for this run

name: Release
on:
push:
branches:
- master
workflow_dispatch:
jobs:
release:
name: Publish & Deploy
if: github.event_name == 'push'
runs-on: ubuntu-latest
permissions:
id-token: write
env:
CI: true
steps:
- name: Checkout Repo
uses: actions/checkout@v6
with:
fetch-depth: 0
token: ${{ secrets.VANILLA_EXTRACT_CI_GITHUB_TOKEN }}
- name: Set up PNPM
uses: pnpm/action-setup@v5
- name: Set up Node.js
uses: actions/setup-node@v6
with:
node-version-file: '.nvmrc'
cache: 'pnpm'
- name: Install Dependencies
run: pnpm install
- name: Create release PR or publish to npm
uses: changesets/action@v1
with:
version: pnpm run version
publish: pnpm release
env:
GITHUB_TOKEN: ${{ secrets.VANILLA_EXTRACT_CI_GITHUB_TOKEN }}
snapshot:
name: Publish snapshot version
if: github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
permissions:
id-token: write
env:
CI: true
steps:
- name: Checkout Repo
uses: actions/checkout@v6
with:
fetch-depth: 0
token: ${{ secrets.VANILLA_EXTRACT_CI_GITHUB_TOKEN }}
- name: Set up PNPM
uses: pnpm/action-setup@v5
- name: Set up Node.js
uses: actions/setup-node@v6
with:
node-version-file: '.nvmrc'
cache: 'pnpm'
- name: Install Dependencies
run: pnpm install
- name: Publish
uses: seek-oss/changesets-snapshot@v0
with:
pre-publish: pnpm prepare-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}