Skip to content

ci: adjust release order #6

ci: adjust release order

ci: adjust release order #6

name: NPM Release
on:
push:
branches:
- main
- next
paths:
- 'use-react-workers/**'
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
jobs:
semantic-release:
name: Release 🎬
runs-on: ubuntu-latest
steps:
- name: 'Checkout'
uses: actions/checkout@v3
with:
fetch-depth: 0
persist-credentials: false
- run: echo "NODE_VERSION=$(cat .nvmrc)" >> $GITHUB_ENV
- uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
- name: Install Deps
run: yarn install --frozen-lockfile
- name: Build package
run: yarn build
- name: Semantic Release
id: 'release'
uses: cycjimmy/semantic-release-action@v4
with:
working_directory: ./use-react-workers
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}