Skip to content

v1.2.0

v1.2.0 #30

Workflow file for this run

name: Node.js Package
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 20
- run: npm ci
- run: npm test
publish-npm:
env:
tag: ${{ github.event.release.tag_name }}
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: git config --global user.email "arjan@einbu.no"
- run: git config --global user.name "Arjan Einbu"
- run: npm version ${tag}
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
publish-gpr:
env:
tag: ${{ github.event.release.tag_name }}
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 20
registry-url: https://npm.pkg.github.com/
scope: '@aeinbu'
- run: npm ci
- run: git config --global user.email "arjan@einbu.no"
- run: git config --global user.name "Arjan Einbu"
- run: npm version ${tag}
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}