Skip to content

Commit 6d31630

Browse files
committed
chore: update workflows config.
1 parent e9e95e4 commit 6d31630

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@ on:
66

77
jobs:
88
build-deploy:
9-
runs-on: ubuntu-18.04
9+
runs-on: ubuntu-latest
1010
steps:
1111
- uses: actions/checkout@v3
1212
- uses: actions/setup-node@v3
1313
with:
1414
node-version: 16
15+
registry-url: 'https://registry.npmjs.org'
1516

1617
- run: npm install
1718
- run: npm run build
@@ -40,13 +41,13 @@ jobs:
4041

4142
- name: Create Tag
4243
id: create_tag
43-
uses: jaywcjlove/create-tag-action@v1.3.8
44+
uses: jaywcjlove/create-tag-action@main
4445
with:
4546
package-path: ./package.json
4647

4748
- name: get tag version
4849
id: tag_version
49-
uses: jaywcjlove/changelog-generator@v1.5.7
50+
uses: jaywcjlove/changelog-generator@main
5051

5152
- name: Deploy
5253
uses: peaceiris/actions-gh-pages@v3
@@ -57,7 +58,7 @@ jobs:
5758

5859
- name: Generate Changelog
5960
id: changelog
60-
uses: jaywcjlove/changelog-generator@v1.5.7
61+
uses: jaywcjlove/changelog-generator@main
6162
with:
6263
head-ref: ${{steps.create_tag.outputs.version}}
6364
filter-author: (renovate-bot|Renovate Bot)
@@ -82,11 +83,11 @@ jobs:
8283
8384
${{ steps.changelog.outputs.changelog }}
8485
85-
- name: 📦 colors-named-hex publish to NPM
86-
uses: JS-DevTools/npm-publish@v1
87-
with:
88-
token: ${{ secrets.NPM_TOKEN }}
89-
package: ./package.json
86+
- run: npm publish
87+
name: 📦 colors-named-hex publish to NPM
88+
continue-on-error: true
89+
env:
90+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
9091

9192
outputs:
9293
successful: ${{steps.create_tag.outputs.successful }}
@@ -114,5 +115,7 @@ jobs:
114115
{ "name": "@jaywcjlove/colors-named-hex" }
115116
116117
- run: npm publish
118+
name: 📦 @jaywcjlove/colors-named-hex publish to NPM
119+
continue-on-error: true
117120
env:
118121
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 commit comments

Comments
 (0)