Skip to content

Fix workflow

Fix workflow #2

Workflow file for this run

#TODO: Refactor to use npm instead of pnpm
name: publish
on:
branches: ['main', 'hotfix/**']
types:
- completed
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
- run: npm ci && npm run build
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}