Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ jobs:
deploy-sdk-to-npm:
needs: [build, define-gcs-versions-to-update]
runs-on: ubuntu-22.04
permissions:
id-token: write
contents: read
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to create tokens to talk to npmjs

steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -80,13 +83,8 @@ jobs:
- name: Setup pnpm
uses: ./.github/actions/setup-pnpm

- name: Setup registry access
run: |
echo '@optable:registry=https://registry.npmjs.org/' > ~/.npmrc
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_CI_ACCESS_TOKEN }}" >> ~/.npmrc

- name: Publish to NPM
run: pnpm publish --access public --no-git-checks
- name: Publish to NPM using OIDC
run: pnpm publish --provenance --access public --no-git-checks

deploy-sdk-to-gcs:
needs: [deploy-sdk-to-npm, define-gcs-versions-to-update]
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"browser": "./lib/dist/sdk.js",
"repository": {
"type": "git",
"url": "git+https://github.com/optable/optable-web-sdk.git"
"url": "git+https://github.com/Optable/optable-web-sdk.git"
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this was just wrong before. Not sure it matters with upper case though

},
"homepage": "https://optable.co",
"license": "SEE LICENSE IN LICENSE",
Expand Down
Loading