Skip to content

Commit e48877a

Browse files
committed
💚 Fix release.yml
1 parent e58c78a commit e48877a

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Setup Node.js
1919
uses: actions/setup-node@v1
2020
with:
21-
node-version: 12
21+
node-version: 17
2222
- name: Install jq yq
2323
run: |
2424
sudo wget https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64 -O /usr/bin/jq &&\
@@ -37,9 +37,16 @@ jobs:
3737
working-directory: ./.release
3838
env:
3939
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
4140
run: |
4241
npm install
4342
npx semantic-release
43+
- name: Publish
44+
working-directory: ./
45+
env:
46+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
47+
run: |
48+
git config --global user.email "[email protected]"
49+
git config --global user.name "nkmr-jp"
4450
npm run sync-version
4551
npm publish --access=public
52+
git push

.npmignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
.idea
22
.github
33
.semver.yml
4-
tmp
4+
tmp
5+
.release
6+
gitmoji-semver

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
//registry.npmjs.org/:_authToken=${NPM_TOKEN}

0 commit comments

Comments
 (0)