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, use Node v18, and update registry URL
  • Loading branch information
ternakkode committed Sep 29, 2024
1 parent 6fe11e7 commit c1c9343
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,14 @@ jobs:
packages: write
steps:
- uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
- uses: actions/setup-node@v4
with:
node-version: 18
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: Setup Node Config
run: |
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" >> ~/.npmrc
- name: Install Dependencies
run: npm install
- run: npm publish
Expand Down
13 changes: 13 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
"name": "layer8interceptor",
"version": "0.1.0",
"type": "module",
"publishConfig": {
"registry": "https://npm.pkg.github.com"
},
"description": "This package allows Layer8 clients to connect to the remote Layer8 Server. It povides the 1) stock WASM glue code 2) binary of the Interceptor, and 3) the index.js necessary to run it. ",
"main": "index.js",
"types": "index.d.ts",
Expand Down

0 comments on commit c1c9343

Please sign in to comment.