Merge pull request #4 from agama-project/really_create_the_tag #7
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
# Publish npm package | |
# see https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages | |
name: Publish NPM Package | |
on: | |
# runs when creating a version tag | |
push: | |
tags: | |
- v[0-9].* | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Git Checkout | |
uses: actions/checkout@v4 | |
- name: Install Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "18.x" | |
registry-url: "https://registry.npmjs.org" | |
- name: Publish the NPM package | |
run: npm publish | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }} |