Skip to content

build(deps-dev): bump @semantic-release/npm from 11.0.3 to 12.0.0 (#21) #12

build(deps-dev): bump @semantic-release/npm from 11.0.3 to 12.0.0 (#21)

build(deps-dev): bump @semantic-release/npm from 11.0.3 to 12.0.0 (#21) #12

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