Skip to content

chore: v1.0.0-pre.1

chore: v1.0.0-pre.1 #4

Workflow file for this run

name: Publish
on:
push:
tags:
- "v*"
jobs:
publish:
# prevents this action from running on forks
if: github.repository == 'kjxbyz/shasum'
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
environment: Release
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4.0.0
- name: Set node version to 20
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.org/
cache: "pnpm"
- name: Install deps
run: pnpm install
- name: Publish
run: pnpm publish --publish-branch main --provenance --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}