Skip to content

Publish Package

Publish Package #1

Workflow file for this run

name: Publish Package
on:
release:
types: [published]
jobs:
publish:
runs-on: ubuntu-22.04
name: Publish
steps:
- name: Checkout
uses: actions/[email protected]
- name: Setup Node
uses: actions/[email protected]
with:
node-version: 'lts/*'
cache: 'npm'
registry-url: 'https://registry.npmjs.org'
- name: Install Dependencies
run: npm ci
- name: Bump Version
run: npm version ${{ github.event.release.tag_name }} --git-tag-version false
- name: Publish
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}