Skip to content

Commit

Permalink
Merge pull request #19 from biaov/hotfix/relase-npm
Browse files Browse the repository at this point in the history
Hotfix/relase npm
  • Loading branch information
biaov authored May 28, 2024
2 parents d3194fd + 094e510 commit 7fe3c08
Show file tree
Hide file tree
Showing 15 changed files with 6,006 additions and 6,007 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,17 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20.x'
node-version: '20.12.x'
registry-url: 'https://registry.npmjs.org'
- run: npm install -g npm
- run: npm ci
- run: npm i
- run: npm run build
- run: cd dist
- run: npm publish
- run: |
VERSION=$(node -p "require('./package.json').version")
cd dist
if [[ "$VERSION" == *"beta"* ]]; then
npm publish --tag=beta
else
npm publish
fi
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
dist
node_modules
.log
.log
.git
4 changes: 0 additions & 4 deletions .ncurc.json

This file was deleted.

Loading

0 comments on commit 7fe3c08

Please sign in to comment.