Skip to content

v3.0.0

v3.0.0 #4

Workflow file for this run

name: Publish Package to NPM
on:
release:
types: [published]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup .npmrc file to publish to npm
uses: actions/setup-node@v4
with:
node-version: 18
cache: npm
registry-url: 'https://registry.npmjs.org'
- id: get_version
uses: battila7/get-version-action@v2
- run: npm --no-git-tag-version version ${{ steps.get_version.outputs.version-without-v }}
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Publish the package with public visibility
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}