Skip to content

Commit

Permalink
v0.0.1-beta
Browse files Browse the repository at this point in the history
  • Loading branch information
SOVLOOKUP committed Oct 1, 2023
1 parent 35ca623 commit 64eb6c0
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -210,28 +210,26 @@ jobs:
- name: List packages
run: ls -R ./npm
shell: bash
- name: Set publishing config
run: pnpm config set '//registry.npmjs.org/:_authToken' "${NODE_AUTH_TOKEN}"
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
- name: Build & Publish
run: |
npm config set provenance true
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> .npmrc
pnpm prepublishOnly
if git log -1 --pretty=%B | grep "^[0-9]\+\.[0-9]\+\.[0-9]\+$";
then
npm publish --access public
cd ..
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> .npmrc
pnpm build
npm publish --access public
elif git log -1 --pretty=%B | grep "^[0-9]\+\.[0-9]\+\.[0-9]\+";
then
npm publish --tag next --access public
cd ..
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> .npmrc
pnpm build
npm publish --tag next --access public
else
echo "Not a release, skipping publish"
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 64eb6c0

Please sign in to comment.