From 9078a963f58e68897d7479f6360fd8fb77f88bb8 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Wed, 5 Apr 2023 01:09:04 +0800 Subject: [PATCH] chore: update workflows config. --- .github/workflows/ci.yml | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 48bf83d..1444e40 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,6 +17,7 @@ jobs: - uses: actions/setup-node@v3 with: node-version: 16 + registry-url: 'https://registry.npmjs.org' # - name: Cache dependencies # uses: actions/cache@v1 @@ -27,7 +28,7 @@ jobs: # ${{ runner.os }}-node- - name: Look Changelog - uses: jaywcjlove/changelog-generator@v1.4.8 + uses: jaywcjlove/changelog-generator@main with: token: ${{ secrets.GITHUB_TOKEN }} filter-author: (jaywcjlove|小弟调调™|dependabot\[bot\]|Renovate Bot) @@ -37,9 +38,6 @@ jobs: - run: npm run build - run: npm run test - - run: npm install @jsdevtools/npm-publish -g - - run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./package.json - - name: Generate Contributors Images uses: jaywcjlove/github-action-contributors@main with: @@ -49,13 +47,13 @@ jobs: - name: Create Tag id: create_tag - uses: jaywcjlove/create-tag-action@v1.3.6 + uses: jaywcjlove/create-tag-action@main with: package-path: ./package.json - name: get tag version id: tag_version - uses: jaywcjlove/changelog-generator@v1.5.3 + uses: jaywcjlove/changelog-generator@main - name: Build and Deploy uses: peaceiris/actions-gh-pages@v3 @@ -66,7 +64,7 @@ jobs: - name: Generate Changelog id: changelog - uses: jaywcjlove/changelog-generator@v1.5.3 + uses: jaywcjlove/changelog-generator@main with: token: ${{ secrets.GITHUB_TOKEN }} filter-author: (jaywcjlove|小弟调调™|dependabot\[bot\]|Renovate Bot) @@ -95,3 +93,11 @@ jobs: ``` ${{ steps.changelog.outputs.changelog }} + + # - run: npm install @jsdevtools/npm-publish -g + # - run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./package.json + - run: npm publish --access public + name: 📦 hotkeys-js to NPM + continue-on-error: true + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} \ No newline at end of file