Skip to content

v0.0.3-alpha

v0.0.3-alpha #4

Workflow file for this run

name: Release Package
on:
release:
types:
- published
jobs:
release:
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "lts/*"
- uses: pnpm/action-setup@v4
with:
version: latest
- name: Install dependencies
run: pnpm install
- name: Lint
run: pnpm run lint
- name: Release
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
VERSION=${GITHUB_REF#refs/tags/v}
npm version $VERSION --no-git-tag-version
npm publish --access public