Skip to content

Commit

Permalink
fix: pr pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
elribonazo committed Dec 26, 2024
1 parent fc031d9 commit 9ecc6df
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,35 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
registry-url: 'https://registry.npmjs.org/'
scope: '@trust0' # Replace with your organization scope
cache: 'npm'
cache-dependency-path: ./package-lock.json


- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true

- name: Install wasm-pack
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh

- name: Configure npm authentication
run: |
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ./.npmrc
echo "@trust0:registry=https://registry.npmjs.org/" >> ./.npmrc
env:
NPM_TOKEN: ${{ env.NPM_TOKEN }}

- name: Install WASM
env:
NPM_TOKEN: ${{ env.NPM_TOKEN }}
GH_TOKEN: ${{ secrets.GH_SECRET }}
run: |
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
npm ci
Expand Down

0 comments on commit 9ecc6df

Please sign in to comment.