Skip to content

v1.0.1-beta.0

v1.0.1-beta.0 #36

Workflow file for this run

name: Publish
on:
release:
types: [prereleased, released]
jobs:
publish:
name: Publish to NPM
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
filter: tree:0
- uses: Lordfirespeed/setup-node@v0.1
with:
node-version-file: package.json
registry-url: https://registry.npmjs.org/
package-managers: pnpm
- run: pnpm install
- run: git config --global user.name "${{ github.actor }}"
- run: git config --global user.email "github-action-${{ github.actor }}@users.noreply.github.com"
- run: |
pnpm version --no-git-tag-version "$(git describe --tags --match "v*" --abbrev=0)"
- run: pnpm publish --access public --no-git-checks
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}