Skip to content

Commit 25821ec

Browse files
committed
fix: setup build dependencies
1 parent 6b98a45 commit 25821ec

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 6 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,17 @@ jobs:
4043
Working directory: $(pwd)
4144
EOF
4245
46+
- name: Install 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: |
48-
npm ci
4953
npm run build
5054
npm run test
5155
5256
- name: Publish scratch-gui to GitHub Packages
53-
env:
54-
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5557
working-directory: ./packages/scratch-gui
5658
run: |
5759
RELEASE_VERSION="0.1.0-experience-cs.$(date +'%Y%m%d%H%M%S')"

0 commit comments

Comments
 (0)