Skip to content

Commit c312308

Browse files
authored
Merge pull request #222 from pusher/fix-ci
Github Actions: Fix release and PR release actions
2 parents 6bb773b + f97c870 commit c312308

File tree

4 files changed

+11
-16
lines changed

4 files changed

+11
-16
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: 7 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,12 @@ 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: Commit and push version bump
3438
shell: bash
3539
run: |
3640
echo "$(jq '.version = "${{ steps.bump.outputs.new_version }}"' package.json)" > package.json

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Changelog
22

3-
## 5.3.0
3+
## 5.3.1
44

5-
- [CHANGED] Describe your change here. Look at CHANGELOG.md to see the format.
5+
- [CHANGED] Fix Github Actions.
66

77
## 5.2.0
88

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "pusher",
33
"description": "Node.js client to interact with the Pusher Channels REST API",
4-
"version": "5.3.0",
4+
"version": "5.3.1",
55
"author": "Pusher <[email protected]>",
66
"contributors": [
77
{

0 commit comments

Comments
 (0)