Skip to content

Commit da86958

Browse files
authored
Merge pull request #87 from element-hq/t3chguy-patch-1
2 parents 3c23424 + f98e082 commit da86958

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/publish.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ jobs:
8383
npm:
8484
name: Publish to npm
8585
runs-on: ubuntu-latest
86+
permissions:
87+
contents: read
88+
id-token: write
8689
steps:
8790
- name: 🧮 Checkout code
8891
uses: actions/checkout@v4
@@ -97,6 +100,10 @@ jobs:
97100
cache-dependency-path: platforms/web/yarn.lock
98101
registry-url: "https://registry.npmjs.org"
99102

103+
# Ensure npm 11.5.1 or later is installed
104+
- name: Update npm
105+
run: npm install -g npm@latest
106+
100107
- name: 🔨 Install dependencies
101108
run: "yarn install --pure-lockfile"
102109
working-directory: platforms/web
@@ -106,9 +113,5 @@ jobs:
106113
working-directory: platforms/web
107114

108115
- name: 🚀 Publish to npm
109-
id: npm-publish
110-
uses: JS-DevTools/npm-publish@v3
111-
with:
112-
package: platforms/web/package.json
113-
token: ${{ secrets.NPM_TOKEN }}
114-
access: public
116+
run: npm publish --access public --provenance
117+
working-directory: platforms/web

0 commit comments

Comments
 (0)