Skip to content

v1.4.0

v1.4.0 #12

Workflow file for this run

name: Node.js Package
on:
release:
types: [created]
jobs:
build:
name: Deploy to NPM
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16]
steps:
- name: Checkout
uses: actions/checkout@v2
# Setup .npmrc file to publish to npm
- uses: pnpm/[email protected]
with:
version: 7
- name: node_modules cache
uses: actions/cache@v3
id: node_modules-cache
with:
path: ./node_modules
key: ${{ runner.os }}-node_modules-${{ hashFiles('**/pnpm-lock.yaml') }}
- name: pnpm cache
if: steps.node_modules-cache.outputs.cache-hit != 'true'
uses: actions/cache@v3
id: pnpm-store
with:
path: ~/.pnpm-store/v3
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-
- name: Install dependencies
run: pnpm i --frozen-lockfile
- name: Build
run: pnpm build
- name: Publish
run: pnpm publish --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}