Skip to content

Publish Package

Publish Package #1

name: Publish Package
on:
release:
types: [published]
workflow_dispatch:
jobs:
publish-gpr:
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
registry-url: 'https://registry.npmjs.org'
scope: '@intuiface'
- name : Install dependencies
run: npm ci
- name : Build package
run: npm run build
- name: Publish package
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPMJS_PUBLISH_TOKEN}}