Skip to content

Commit dbda134

Browse files
committed
GH Actions: More fixes
1 parent 6bb773b commit dbda134

File tree

2 files changed

+12
-13
lines changed

2 files changed

+12
-13
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -64,19 +64,10 @@ jobs:
6464
needs: create-github-release
6565
steps:
6666
- uses: actions/checkout@v4
67-
- uses: flood-io/is-published-on-npm@8478347e2650eb228d303975415458183d0a37e4
68-
id: is-published
69-
- run: echo "This version is already published on NPM"
70-
if: ${{ steps.is-published.outputs.published == 'true' }}
71-
- uses: actions/setup-node@v2
72-
if: ${{ steps.is-published.outputs.published == 'false' }}
67+
- uses: actions/setup-node@v4
7368
with:
7469
node-version: "14"
75-
registry-url: https://registry.npmjs.org/
7670
- run: npm install
77-
if: ${{ steps.is-published.outputs.published == 'false' }}
7871
- run: npm publish --access public
79-
if: ${{ steps.is-published.outputs.published == 'false' }}
8072
env:
8173
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
82-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/release_pr.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@v4
15+
with:
16+
token: ${{ secrets.PUSHER_CI_GITHUB_PRIVATE_TOKEN }}
17+
fetch-depth: 0
1518
- name: Get current version
1619
shell: bash
1720
run: |
@@ -26,11 +29,16 @@ jobs:
2629
id: bump
2730
with:
2831
current_version: ${{ env.CURRENT_VERSION }}
29-
- uses: actions/setup-node@v2
32+
token: ${{ secrets.PUSHER_CI_GITHUB_PRIVATE_TOKEN }}
33+
- uses: actions/setup-node@v4
3034
with:
31-
node-version: "14"
35+
node-version: "20"
3236
- run: npm install
33-
- name: Push
37+
- name: Setup git
38+
run: |
39+
git config user.email "[email protected]"
40+
git config user.name "Pusher CI"
41+
- name: Commit and push version bump
3442
shell: bash
3543
run: |
3644
echo "$(jq '.version = "${{ steps.bump.outputs.new_version }}"' package.json)" > package.json

0 commit comments

Comments
 (0)