Skip to content

Commit

Permalink
Publish with provenance statements (#6602)
Browse files Browse the repository at this point in the history
* Publish with provenance statements
  • Loading branch information
kneth authored Apr 11, 2024
1 parent 6979185 commit 5dab798
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/publish-package-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ on:
jobs:
publish-package-release:
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- run: echo "Publishing release for ${{inputs.package}}"
- uses: kanga333/[email protected]
Expand Down Expand Up @@ -115,7 +117,7 @@ jobs:

- name: Publish ${{ env.RELEASE_TITLE }} v${{ steps.get-version.outputs.version }} on NPM
working-directory: ${{ env.PACKAGE_PATH }}
run: npm publish --tag '${{ inputs.tag}}'
run: npm publish --provenance --tag '${{ inputs.tag}}'
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ on:
jobs:
main:
runs-on: ubuntu-latest
permissions:
id-token: write
steps:

- name: Checkout code
Expand Down Expand Up @@ -91,7 +93,7 @@ jobs:
run: s3cmd put --recursive --acl-public packages/realm/prebuilds/realm-* s3://${{ secrets.PREBUILDS_S3_BUCKET_NAME }}/${{ steps.get-version.outputs.version }}/

- name: Publish realm v${{ steps.get-version.outputs.version }} on NPM
run: npm publish --workspace realm --tag '${{ inputs.tag}}'
run: npm publish --provenance --workspace realm --tag '${{ inputs.tag}}'
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
### Internal
* The base URL used to communicate with the Atlas App Services was changed from "https://realm.mongodb.com" to "https://services.cloud.mongodb.com". ([realm/realm-core#7534](https://github.com/realm/realm-core/pull/7534)).
* Upgraded Realm Core from v13.26.0 to v14.5.0. ([#6499](https://github.com/realm/realm-js/issues/6499), [#6541](https://github.com/realm/realm-js/issues/6541), [#6568](https://github.com/realm/realm-js/issues/6568), [#6572](https://github.com/realm/realm-js/issues/6572), and [#6599](https://github.com/realm/realm-js/issues/6599))
* Publish releases with [provenance statements](https://docs.npmjs.com/generating-provenance-statements).

## 12.7.0-rc.0 (2024-03-26)

Expand Down
5 changes: 5 additions & 0 deletions packages/babel-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,10 @@
"realm": "*",
"ts-jest": "^29.1.2",
"typescript": "^4.6.3"
},
"repository": {
"type": "git",
"url": "https://github.com/realm/realm-js.git",
"directory": "packages/babel-plugin"
}
}
5 changes: 5 additions & 0 deletions packages/fetch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@
"@tsconfig/node18": "^18.2.2",
"@tsconfig/recommended": "^1.0.3"
},
"repository": {
"type": "git",
"url": "https://github.com/realm/realm-js.git",
"directory": "packages/fetch"
},
"engines": {
"node": ">=18"
}
Expand Down

0 comments on commit 5dab798

Please sign in to comment.