Skip to content

Commit

Permalink
Refactor build workflow to include permissions for reading contents a…
Browse files Browse the repository at this point in the history
…nd writing packages
  • Loading branch information
ternakkode committed Sep 29, 2024
1 parent fdfbfbc commit 6c5acf8
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ on:
- created
push:

permissions:
contents: read
packages: write

jobs:
build:
name: Build WASM Package
Expand Down Expand Up @@ -66,21 +62,24 @@ jobs:
name: Publish Node Package
needs: s3
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '20'
registry-url: https://npm.pkg.github.com/
registry-url: 'https://npm.pkg.github.com'
- name: Install Utilities
run: sudo apt-get install jq moreutils
- name: Setup WASM Config
run: jq '.wasm_url = "${{vars.CLOUDFRONT_CDN_DOMAIN}}/${{ github.sha }}"' config.json | sponge config.json
- name: Install Dependencies
run: npm install
- name: Publish Package
run: npm publish --access public
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 6c5acf8

Please sign in to comment.