Skip to content

add: .vscode/settings.json & format: files #14

add: .vscode/settings.json & format: files

add: .vscode/settings.json & format: files #14

Workflow file for this run

name: Alpha Release
on:
push:
branches:
- "main"
jobs:
publish:
name: 🚀 Publishing to NPM
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v3
with:
node-version: 22
registry-url: https://registry.npmjs.org/
- name: Set vars
run: |
echo "VERSION=$(npm view ./ version)" >> $GITHUB_ENV
echo "COMMIT_ID=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
- name: Build & Publish
run: |
pnpm install
pnpm test
pnpm build
pnpm version ${{ env.VERSION }}-alpha.${{ env.COMMIT_ID }} --no-git-tag-version
pnpm publish --tag alpha --no-git-checks
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}