Skip to content

Commit bfec266

Browse files
committed
Update workflow so it actually applies
1 parent 06fd7a9 commit bfec266

1 file changed

Lines changed: 10 additions & 12 deletions

File tree

.github/workflows/deploy-dev.js.yml

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@ jobs:
3030
with:
3131
node-version: 20
3232

33-
- name: Install Serverless Framework
34-
run: npm install -g serverless@3.38.0
35-
3633
- name: Serverless AWS authentication
3734
run: sls config credentials --provider aws --key ${{ secrets.AWS_KEY }} --secret ${{ secrets.AWS_SECRET }}
3835

@@ -41,26 +38,27 @@ jobs:
4138
# cat > env.yml << EOF
4239
# ${{ secrets.ENV }}
4340
# EOF
41+
- name: Clean node_modules and package-lock.json
42+
run: |
43+
rm -rf node_modules
44+
rm -f package-lock.json
4445
4546
- name: Create .npmrc
4647
run: echo "@abstractplay:registry=https://npm.pkg.github.com/" > .npmrc
4748
- run: echo "//npm.pkg.github.com/:_authToken=${{secrets.PAT_READ_PACKAGES}}" >> .npmrc
4849

49-
- name: Kill package-lock.json
50-
run: rm package-lock.json
51-
52-
- name: Install NPM dependencies
53-
run: npm i
54-
5550
- name: Install development renderer
56-
run: npm remove @abstractplay/renderer && npm i @abstractplay/renderer@development
51+
run: npm i @abstractplay/renderer@development
5752

5853
- name: Install development gameslib
59-
run: npm remove @abstractplay/gameslib && npm i @abstractplay/gameslib@development
54+
run: npm i @abstractplay/gameslib@development
6055

6156
- name: Dump package-lock.json
6257
run: cat package-lock.json
6358

59+
- name: Install all dependencies
60+
run: npm ci
61+
6462
- name: Set CI version
6563
run: npm version prerelease --preid=ci-$GITHUB_RUN_ID --no-git-tag-version
6664

@@ -83,7 +81,7 @@ jobs:
8381
# aws-region: us-east-1
8482

8583
- name: Deploy
86-
run: serverless deploy
84+
run: npx serverless deploy
8785

8886
# Optional (to use with serverless-finch serverless plugin)
8987
#- name: Deploy assets to S3

0 commit comments

Comments
 (0)