Skip to content

Commit 9ea5419

Browse files
committed
chore: update workflows config.
1 parent b27e3be commit 9ea5419

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

.github/workflows/ci.yml

+12-9
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@ on:
66

77
jobs:
88
build:
9-
runs-on: ubuntu-18.04
9+
runs-on: ubuntu-latest
1010
steps:
1111
- uses: actions/checkout@v3
12-
- uses: actions/setup-node@v2
12+
- 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 install --workspaces
@@ -28,13 +29,13 @@ jobs:
2829

2930
- name: Create Tag
3031
id: create_tag
31-
uses: jaywcjlove/create-tag-action@v1.3.6
32+
uses: jaywcjlove/create-tag-action@main
3233
with:
3334
package-path: ./core/package.json
3435

3536
- name: get tag version
3637
id: tag_version
37-
uses: jaywcjlove/changelog-generator@v1.5.3
38+
uses: jaywcjlove/changelog-generator@main
3839

3940
- name: Deploy Website
4041
uses: peaceiris/actions-gh-pages@v3
@@ -47,7 +48,7 @@ jobs:
4748

4849
- name: Generate Changelog
4950
id: changelog
50-
uses: jaywcjlove/changelog-generator@v1.5.3
51+
uses: jaywcjlove/changelog-generator@main
5152
with:
5253
token: ${{ secrets.GITHUB_TOKEN }}
5354
filter-author: (小弟调调™|dependabot\[bot\]|Renovate Bot)
@@ -78,7 +79,9 @@ jobs:
7879
github_token: ${{ secrets.GITHUB_TOKEN }}
7980
publish_dir: ./website/build
8081

81-
- uses: JS-DevTools/npm-publish@v1
82-
with:
83-
token: ${{ secrets.NPM_TOKEN }}
84-
package: ./core/package.json
82+
- run: npm publish
83+
name: 📦 markdown-react-code-preview-loader publish to NPM
84+
working-directory: core
85+
continue-on-error: true
86+
env:
87+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)