Skip to content

fix: gh_token (#12)

fix: gh_token (#12) #2

Workflow file for this run

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 }}