Skip to content

Commit

Permalink
chore: update workflows config.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Feb 22, 2023
1 parent 2d40c81 commit 3b4986d
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@ env:
SKIP_PREFLIGHT_CHECK: true
jobs:
build-deploy:
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 14
node-version: 16
registry-url: 'https://registry.npmjs.org'

- run: npm install
- run: npm run build
Expand All @@ -30,13 +31,13 @@ jobs:

- name: ♻️ Is a tag created auto?
id: create_tag
uses: jaywcjlove/create-tag-action@v1.3.4
uses: jaywcjlove/create-tag-action@main
with:
package-path: ./package.json

- name: Generate Changelog
id: changelog
uses: jaywcjlove/changelog-generator@v1.4.8
uses: jaywcjlove/changelog-generator@main
if: steps.create_tag.outputs.successful
with:
token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -45,7 +46,7 @@ jobs:
filter: '[R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'

- name: ♻️ Create Release
uses: jaywcjlove/create-tag-action@v1.3.4
uses: jaywcjlove/create-tag-action@main
with:
package-path: ./package.json
release: true
Expand All @@ -60,8 +61,8 @@ jobs:
${{ steps.changelog.outputs.changelog }}
- name: 📦 create-antdp publish to NPM
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
package: ./package.json
- run: npm publish
name: 📦 create-antdp publish to NPM
continue-on-error: true
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 3b4986d

Please sign in to comment.