fix: nested group & peer #17
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}} |