diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ca6550f..a79df76 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -64,19 +64,10 @@ jobs: needs: create-github-release steps: - uses: actions/checkout@v4 - - uses: flood-io/is-published-on-npm@8478347e2650eb228d303975415458183d0a37e4 - id: is-published - - run: echo "This version is already published on NPM" - if: ${{ steps.is-published.outputs.published == 'true' }} - - uses: actions/setup-node@v2 - if: ${{ steps.is-published.outputs.published == 'false' }} + - uses: actions/setup-node@v4 with: node-version: "14" - registry-url: https://registry.npmjs.org/ - run: npm install - if: ${{ steps.is-published.outputs.published == 'false' }} - run: npm publish --access public - if: ${{ steps.is-published.outputs.published == 'false' }} env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/.github/workflows/release_pr.yml b/.github/workflows/release_pr.yml index 022845e..0ea2012 100644 --- a/.github/workflows/release_pr.yml +++ b/.github/workflows/release_pr.yml @@ -12,6 +12,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + with: + token: ${{ secrets.PUSHER_CI_GITHUB_PRIVATE_TOKEN }} + fetch-depth: 0 - name: Get current version shell: bash run: | @@ -26,11 +29,12 @@ jobs: id: bump with: current_version: ${{ env.CURRENT_VERSION }} - - uses: actions/setup-node@v2 + token: ${{ secrets.PUSHER_CI_GITHUB_PRIVATE_TOKEN }} + - uses: actions/setup-node@v4 with: - node-version: "14" + node-version: "20" - run: npm install - - name: Push + - name: Commit and push version bump shell: bash run: | echo "$(jq '.version = "${{ steps.bump.outputs.new_version }}"' package.json)" > package.json diff --git a/CHANGELOG.md b/CHANGELOG.md index 5d08495..713ccae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,8 @@ # Changelog -## 5.3.0 +## 5.3.1 -- [CHANGED] Describe your change here. Look at CHANGELOG.md to see the format. +- [CHANGED] Fix Github Actions. ## 5.2.0 diff --git a/package.json b/package.json index 75003cd..eb3eca8 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "pusher", "description": "Node.js client to interact with the Pusher Channels REST API", - "version": "5.3.0", + "version": "5.3.1", "author": "Pusher ", "contributors": [ {