-
-
Notifications
You must be signed in to change notification settings - Fork 6
#242 update github actions #247
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -5,6 +5,10 @@ on: | |||||
| branches: | ||||||
| - main | ||||||
|
|
||||||
| permissions: | ||||||
| id-token: write | ||||||
| contents: read | ||||||
|
|
||||||
| jobs: | ||||||
| build: | ||||||
| runs-on: ubuntu-latest | ||||||
|
|
@@ -20,40 +24,9 @@ jobs: | |||||
| - run: npm install -g npm@latest | ||||||
| - run: npm install | ||||||
| - run: npm run publish:dist | ||||||
| - run: cd ~/work/player/player/dist/src && npm publish --access public | ||||||
| env: | ||||||
| NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }} | ||||||
| - run: cd ~/work/player/player/dist/packages/cache && npm publish --access public | ||||||
| env: | ||||||
| NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }} | ||||||
| - run: cd ~/work/player/player/dist/packages/core && npm publish --access public | ||||||
| env: | ||||||
| NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }} | ||||||
| - run: cd ~/work/player/player/dist/packages/display && npm publish --access public | ||||||
| env: | ||||||
| NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }} | ||||||
| - run: cd ~/work/player/player/dist/packages/events && npm publish --access public | ||||||
| env: | ||||||
| NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }} | ||||||
| - run: cd ~/work/player/player/dist/packages/filters && npm publish --access public | ||||||
| env: | ||||||
| NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }} | ||||||
| - run: cd ~/work/player/player/dist/packages/geom && npm publish --access public | ||||||
| env: | ||||||
| NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }} | ||||||
| - run: cd ~/work/player/player/dist/packages/media && npm publish --access public | ||||||
| env: | ||||||
| NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }} | ||||||
| - run: cd ~/work/player/player/dist/packages/net && npm publish --access public | ||||||
| env: | ||||||
| NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }} | ||||||
| - run: cd ~/work/player/player/dist/packages/render-queue && npm publish --access public | ||||||
| env: | ||||||
| NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }} | ||||||
| - run: cd ~/work/player/player/dist/packages/text && npm publish --access public | ||||||
| env: | ||||||
| NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }} | ||||||
| - run: cd ~/work/player/player/dist/packages/ui && npm publish --access public | ||||||
| env: | ||||||
| NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }} | ||||||
| - run: cd ~/work/player/player && npm run clean | ||||||
| - name: Publish packages | ||||||
| run: | | ||||||
| find ./dist -name "package.json" -not -path "*/node_modules/*" -exec dirname {} \; | while read dir; do | ||||||
| npm publish --workspace="${dir}" | ||||||
|
||||||
| npm publish --workspace="${dir}" | |
| (cd "$dir" && npm publish --provenance --access public) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The workflow-level
permissionsblock grantsid-token: write, but this job also defines its ownpermissions(lines 15-17) which overrides the workflow defaults. As written, thebuildjob will NOT receiveid-token: write, so any OIDC/trusted-publishing flow will fail. Consider either addingid-token: writeto the job permissions, or removing the job-levelpermissionsblock if it’s not needed.