Skip to content

release 0.5.0-rc.0

release 0.5.0-rc.0 #1

Workflow file for this run

name: Publish on Tag
on:
push:
tags:
- '*pre*'
- '*rc*'
- '[0-9]+.[0-9]+.[0-9]+'
jobs:
build-and-publish:
runs-on: ubuntu-latest
strategy:
matrix:
node: [ 18.18.0 ]
scope: ['@northscaler' ]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Use Node.js
uses: actions/setup-node@v3
with:
always-auth: true
node-version: ${{ matrix.node }}
registry-url: 'https://registry.npmjs.org'
scope: ${{ matrix.scope }}
- name: Cache node modules
uses: actions/cache@v3
env:
cache-name: cache-node-modules
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- run: npm run build
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
CI: true
- run: npm run make-distribution
- run: npm prune --production
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}