v2.6.0 #22
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: NPM Package | |
on: | |
release: | |
types: [published] | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Chekout Repo | |
uses: actions/checkout@v3 | |
- name: Node Setup | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- run: npm ci | |
publish-npm: | |
name: Publish to NPM | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Chekout Repo | |
uses: actions/checkout@v3 | |
- name: Node Setup | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
registry-url: https://registry.npmjs.org/ | |
- name: Install Dependencies | |
run: npm ci | |
- name: Publish to NPM | |
run: npm publish | |
env: | |
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}} |