Skip to content

1.2.0

1.2.0 #20

Workflow file for this run

name: npm-publish
on:
push:
tags:
- 'v*'
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node: [20]
name: ${{ matrix.os }} Node ${{ matrix.node }} cache
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
registry-url: https://registry.npmjs.org/
- name: Get npm cache directory
id: npm-cache
run: |
echo "CACHE_DIR=$(npm config get cache)" >> $GITHUB_OUTPUT
- uses: actions/cache@v4
id: cache
with:
path: ${{ steps.npm-cache.outputs.CACHE_DIR }}
key: ${{ runner.os }}-node-${{ matrix.node }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-${{ matrix.node }}-
${{ runner.os }}-node-
- run: npm ci
- run: npm run test:before-publish
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}