From 023171d9a08484c32e24f8228602ef4d5173c749 Mon Sep 17 00:00:00 2001 From: Lucas Holmquist Date: Wed, 31 May 2023 11:54:34 -0400 Subject: [PATCH 1/3] chore: fix the release-please automation script. (#554) The id of release was left out, so the checks to see if there needs to be a publish were being skipped Signed-off-by: Lucas Holmquist --- .github/workflows/release-please.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index c812a360..680c6523 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -8,6 +8,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: GoogleCloudPlatform/release-please-action@v3 + id: release with: token: ${{ secrets.GITHUB_TOKEN }} release-type: node From a0d86826138be31072c9a30edf26f4b91da576ed Mon Sep 17 00:00:00 2001 From: Lucas Holmquist Date: Wed, 5 Jul 2023 09:37:35 -0400 Subject: [PATCH 2/3] chore: add the provenance flag when publishing to npm (#556) * This also splits the GH release and npm publish workflows Signed-off-by: Lucas Holmquist --- .github/workflows/publish-to-npm.yml | 21 +++++++++++++++++++++ .github/workflows/release-please.yml | 18 +----------------- 2 files changed, 22 insertions(+), 17 deletions(-) create mode 100644 .github/workflows/publish-to-npm.yml diff --git a/.github/workflows/publish-to-npm.yml b/.github/workflows/publish-to-npm.yml new file mode 100644 index 00000000..838c16f9 --- /dev/null +++ b/.github/workflows/publish-to-npm.yml @@ -0,0 +1,21 @@ +name: Publish to npmjs +on: + release: + types: [created] +jobs: + build: + runs-on: ubuntu-latest + permissions: + contents: read + id-token: write + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: '18.x' + registry-url: 'https://registry.npmjs.org' + - run: npm install -g npm + - run: npm ci + - run: npm publish --provenance --access public + env: + NODE_AUTH_TOKEN: ${{ secrets.CLOUDEVENTS_PUBLISH }} diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 680c6523..e588b676 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -10,23 +10,7 @@ jobs: - uses: GoogleCloudPlatform/release-please-action@v3 id: release with: - token: ${{ secrets.GITHUB_TOKEN }} + token: ${{ secrets.CLOUDEVENTS_RELEASES_TOKEN }} release-type: node package-name: cloudevents changelog-types: '[{"type":"feat","section":"Features","hidden":false},{"type":"fix","section":"Bug Fixes","hidden":false},{"type":"docs","section":"Documentation","hidden":false},{"type":"chore","section":"Miscellaneous","hidden":false},{"type":"src","section":"Miscellaneous","hidden":false},{"type":"style","section":"Miscellaneous","hidden":false},{"type":"refactor","section":"Miscellaneous","hidden":false},{"type":"perf","section":"Performance","hidden":false},{"type":"test","section":"Tests","hidden":false}]' - - - uses: actions/checkout@v3 - if: ${{ steps.release.outputs.release_created }} - - uses: actions/setup-node@v3 - with: - node-version: 16 - registry-url: 'https://registry.npmjs.org' - if: ${{ steps.release.outputs.release_created }} - - run: npm ci - if: ${{ steps.release.outputs.release_created }} - - run: npm test - if: ${{ steps.release.outputs.release_created }} - - run: npm publish - env: - NODE_AUTH_TOKEN: ${{secrets.CLOUDEVENTS_PUBLISH}} - if: ${{ steps.release.outputs.release_created }} \ No newline at end of file From 0d923a4f92fcf510985c023549eb4bab8fa965da Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 11 Jul 2023 11:54:47 -0400 Subject: [PATCH 3/3] chore(main): release 7.0.2 (#555) Signed-off-by: Lucas Holmquist Co-authored-by: Lucas Holmquist --- CHANGELOG.md | 8 ++++++++ package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9797d7eb..4c198457 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,14 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +## [7.0.2](https://github.com/cloudevents/sdk-javascript/compare/v7.0.1...v7.0.2) (2023-07-05) + + +### Miscellaneous + +* add the provenance flag when publishing to npm ([#556](https://github.com/cloudevents/sdk-javascript/issues/556)) ([a0d8682](https://github.com/cloudevents/sdk-javascript/commit/a0d86826138be31072c9a30edf26f4b91da576ed)) +* fix the release-please automation script. ([#554](https://github.com/cloudevents/sdk-javascript/issues/554)) ([023171d](https://github.com/cloudevents/sdk-javascript/commit/023171d9a08484c32e24f8228602ef4d5173c749)) + ## [7.0.1](https://github.com/cloudevents/sdk-javascript/compare/v7.0.0...v7.0.1) (2023-05-30) diff --git a/package-lock.json b/package-lock.json index a1948905..b9475469 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "cloudevents", - "version": "7.0.1", + "version": "7.0.2", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "cloudevents", - "version": "7.0.1", + "version": "7.0.2", "license": "Apache-2.0", "dependencies": { "ajv": "^8.11.0", diff --git a/package.json b/package.json index a62d153c..6cc812cc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cloudevents", - "version": "7.0.1", + "version": "7.0.2", "description": "CloudEvents SDK for JavaScript", "main": "dist/index.js", "scripts": {