Skip to content

Merge branch 'main' of github.com:jpwallace22/use-react-workers #11

Merge branch 'main' of github.com:jpwallace22/use-react-workers

Merge branch 'main' of github.com:jpwallace22/use-react-workers #11

name: NPM Release
on:
push:
branches:
- main
- beta
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
- name: Enable Corepack before setting up node
run: corepack enable
- uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
- name: Install Deps
run: yarn install --immutable
- 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 }}