Skip to content

release: bump version to v1.5.6 #19

release: bump version to v1.5.6

release: bump version to v1.5.6 #19

name: Publish package to GitHub Packages
on:
push:
tags:
- 'v*.*.*'
jobs:
publish_github:
name: Publish to Github Package
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version-file: '.nvmrc'
registry-url: 'https://npm.pkg.github.com'
- name: Install dependencies
run: npm install
- name: Build package
run: npm run build:lib
- name: Publish package
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
publish_npm:
name: Publish to npmjs
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version-file: '.nvmrc'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: npm install
- name: Build package
run: npm run build:lib
- name: Publish package
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}