Skip to content

1.6.0

1.6.0 #15

Workflow file for this run

name: Publish Release
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install Node.js 18
uses: actions/setup-node@v3
with:
node-version: "18"
registry-url: https://registry.npmjs.org/
- name: Install lib dependencies
run: cd lib && npm install
- name: Build library
run: cd lib && npm run build
- name: Test library
run: cd lib && npm run test:coverage
- name: Publish RELEASE to npm
run: |
sed -i "s#\"version\": \"0.0.0\"#\"version\": \"${TAG_NAME}\"#" ./lib/dist/package.json
cd lib/dist
npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
TAG_NAME: ${{ github.event.release.tag_name }}