Skip to content

Workflow file for this run

on:
release:
types:
- published
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3
- name: Setup pnpm
uses: pnpm/action-setup@d882d12c64e032187b2edb46d3a0d003b7a43598 # v2.4.0
with:
version: latest
- name: Setup Node.js
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3
with:
node-version-file: .node-version
- name: Installing dependencies
run: pnpm install --frozen-lockfile
- name: Compile source
run: pnpm run build
- name: "NPM Identity"
env:
NODE_AUTH_TOKEN: '${{ secrets.NPM_TOKEN }}'
run: |
echo "//registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN" > .npmrc
- name: Publish source
run: |
pnpm publish --no-git-checks --access public || true