Skip to content

Version 2.0.1

Version 2.0.1 #12

name: Publish package to GitHub Packages
on:
release:
types: [published]
jobs:
publish-gpr:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
registry-url: 'https://npm.pkg.github.com'
scope: '@jazz-community'
- run: |
npm ci
sed -i 's+"name": ".*+"name": "@${{ github.repository }}",+' ./package.json
npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}