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
6 changes: 3 additions & 3 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
uses: actions/checkout@v6
- uses: actions/setup-node@v6.2.0
with:
node-version: 18
node-version: 24
cache: yarn
cache-dependency-path: yarn.lock

Expand Down Expand Up @@ -73,7 +73,7 @@ jobs:
uses: actions/checkout@v6
- uses: actions/setup-node@v6.2.0
with:
node-version: 18
node-version: 24
cache: yarn
cache-dependency-path: yarn.lock

Expand Down Expand Up @@ -101,7 +101,7 @@ jobs:
uses: actions/checkout@v6
- uses: actions/setup-node@v6.2.0
with:
node-version: 18
node-version: 24
cache: yarn
cache-dependency-path: yarn.lock

Expand Down
16 changes: 13 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
uses: actions/checkout@v6
- uses: actions/setup-node@v6.2.0
with:
node-version: 18
node-version: 24
cache: yarn
cache-dependency-path: yarn.lock

Expand All @@ -47,20 +47,30 @@ jobs:
name: Release and Sync Repos
runs-on: ubuntu-latest
needs: ['android-unit-tests', 'react-tests']
# OIDC permissions for npm trusted publishing
permissions:
contents: write
issues: write
pull-requests: write
id-token: write # Required for OIDC authentication with npm
steps:
- name: Checkout internal/development
uses: actions/checkout@v6

- name: Setup Node.js
uses: actions/setup-node@v6.2.0
with:
node-version: 18
node-version: 24
registry-url: 'https://registry.npmjs.org'

- name: Install node modules
run: yarn install

- name: Ensure npm CLI supports OIDC
run: npm install -g npm@latest

- name: Build SDK
run: yarn build

- name: Release
run: ./release.sh ${{ secrets.NPM_TOKEN}}
run: ./release.sh
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@
"app.plugin.js",
"plugin"
],
"publishConfig": {
"access": "public",
"provenance": true,
"registry": "https://registry.npmjs.org"
},
"dependencies": {},
"peerDependencies": {
"react": ">= 16.0.0-alpha.12",
Expand Down
6 changes: 1 addition & 5 deletions release.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,2 @@
#!/usr/bin/env bash
: ${1?"NPM Token missing- usage: $0 {MY_NPM_TOKEN}"}

touch .npmrc;
echo "//registry.npmjs.org/:_authToken=$1" > .npmrc;
npm publish;
npm publish --provenance
Loading