Skip to content

Commit 91ca84c

Browse files
committed
fix: setup build dependencies
1 parent 932447b commit 91ca84c

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ permissions:
1212
pull-requests: write # comment on released pull requests
1313
packages: write # deploy to GitHub Packages
1414

15+
env:
16+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17+
NPM_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18+
1519
concurrency:
1620
group: "${{ github.workflow }} @ ${{ github.event.compare || github.head_ref || github.ref }}"
1721
cancel-in-progress: true
@@ -26,7 +30,6 @@ jobs:
2630
with:
2731
cache: "npm"
2832
node-version-file: ".nvmrc"
29-
registry-url: "https://npm.pkg.github.com"
3033

3134
- uses: wagoid/commitlint-github-action@9763196e10f27aef304c9b8b660d31d97fce0f99 # v5
3235
- name: Debug info
@@ -40,18 +43,18 @@ jobs:
4043
Working directory: $(pwd)
4144
EOF
4245
46+
- name: Setup root dependencies
47+
run: |
48+
npm ci
49+
4350
- name: Build and test scratch-gui
44-
env:
45-
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4651
working-directory: ./packages/scratch-gui
4752
run: |
4853
npm ci
4954
npm run build
5055
npm run test
5156
5257
- name: Publish scratch-gui to GitHub Packages
53-
env:
54-
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5558
working-directory: ./packages/scratch-gui
5659
run: |
5760
RELEASE_VERSION="0.1.0-experience-cs.$(date +'%Y%m%d%H%M%S')"

0 commit comments

Comments
 (0)