Skip to content

Commit e3b61c7

Browse files
authored
fix(ci): added .npmrc
1 parent fd4149c commit e3b61c7

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,11 @@ jobs:
4444
run: bash ./scripts/build-cli.sh
4545

4646
- name: Release
47-
run: |
48-
if git log -1 --pretty=%B | grep -q "\[skip-ci\]"; then
49-
exit 0
50-
fi
51-
pnpm release-it --ci --increment=${{ github.event.inputs.versionType }} --config=packages/lib/.release-it.json
47+
run: pnpm release-it --ci --increment=${{ github.event.inputs.versionType }} --config=packages/lib/.release-it.json
5248
env:
5349
GITHUB_TOKEN: ${{secrets.GH_TOKEN }}
5450
- name: Publish npm package
5551
run: |
5652
cd packages/lib
53+
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_AUTH_TOKEN }}" > ~/.npmrc
5754
npm publish --access=public
58-
env:
59-
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

0 commit comments

Comments
 (0)