Skip to content

Update Version and Publish to NPM #3

Update Version and Publish to NPM

Update Version and Publish to NPM #3

Workflow file for this run

name: Update Version and Publish to GitHub Packages
on:
release:
types: [published]
jobs:
publish-github-packages:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '18'
registry-url: 'https://npm.pkg.github.com'
- name: Update package.json version
run: npm version --tag=latest ${{ github.event.release.tag_name }}
- name: Install dependencies
run: npm ci
- name: Publish to GitHub Packages
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}