Skip to content

Release

Release #10

Workflow file for this run

name: Release
on:
workflow_run:
workflows: [ci]
branches: [master]
types:
- completed
jobs:
maybe-release:
name: release
runs-on: ubuntu-latest
if: github.event.workflow_run.conclusion == 'success'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
registry-url: 'https://registry.npmjs.org'
- run: corepack enable
- run: yarn install --immutable
- run: yarn build
- env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
run: |
echo npmAuthToken: "$NODE_AUTH_TOKEN" >> ./.yarnrc.yml
- run: yarn workspaces foreach -A -v --exclude root --no-private npm publish --tolerate-republish --access public