Skip to content

Commit

Permalink
Update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
ruchernchong committed Dec 25, 2024
1 parent ad6ee5f commit 22714d2
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/sst.deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ on:
required: true

jobs:
deployer:
sst-deploy:
runs-on: ubuntu-latest
environment: ${{ inputs.environment }}
env:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/sst.prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
permissions:
id-token: write
contents: read
packages: read

jobs:
deploy:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/sst.staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ permissions:
jobs:
test:
runs-on: ubuntu-latest
permissions:
packages: read
environment: Staging
steps:
- name: Checkout code
Expand All @@ -27,9 +29,13 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: latest
registry-url: 'https://npm.pkg.github.com'
scope: '@sgcarstrends'
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Run tests
run: pnpm test

Expand Down
2 changes: 1 addition & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@sgcarstrends:registry=https://npm.pkg.github.com/
//npm.pkg.github.com/:_authToken=${GITHUB_TOKEN}
//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}

0 comments on commit 22714d2

Please sign in to comment.