Skip to content

Commit

Permalink
Fix permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
ggetz committed Nov 1, 2023
1 parent 9dfcbb4 commit 6905243
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 18 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ jobs:
BRANCH: ${{ github.ref_name }}
steps:
- uses: actions/checkout@v3
- name: install node 18
- name: install node 20
uses: actions/setup-node@v3
with:
node-version: '18'
node-version: '20'
- name: npm install
run: npm install
- name: build
Expand All @@ -50,10 +50,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: install node 18
- name: install node 20
uses: actions/setup-node@v3
with:
node-version: '18'
node-version: '20'
- name: npm install
run: npm install
- name: release build
Expand All @@ -78,10 +78,10 @@ jobs:
GITHUB_SHA: ${{ github.sha }}
steps:
- uses: actions/checkout@v3
- name: install node 18
- name: install node 20
uses: actions/setup-node@v3
with:
node-version: '18'
node-version: '20'
- name: npm install
run: npm install
- name: set the version in package.json
Expand All @@ -101,7 +101,7 @@ jobs:
- name: set status
if: ${{ env.AWS_ACCESS_KEY_ID != '' }}
run: npm run deploy-status -- --status success --message Deployed
node-16:
node-18:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down
16 changes: 5 additions & 11 deletions .github/workflows/prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: install node 18
- name: install node 20
uses: actions/setup-node@v3
with:
node-version: '18'
node-version: '20'
- name: npm install
run: npm install
- name: lint *.js
Expand All @@ -22,9 +22,6 @@ jobs:
run: npm run prettier-check
deploy:
runs-on: ubuntu-latest
permissions:
statuses: write
contents: read
env:
PROD: true
AWS_ACCESS_KEY_ID: ${{ secrets.PROD_AWS_ACCESS_KEY_ID }}
Expand All @@ -36,10 +33,10 @@ jobs:
GITHUB_SHA: ${{ github.sha }}
steps:
- uses: actions/checkout@v3
- name: install node 18
- name: install node 20
uses: actions/setup-node@v3
with:
node-version: '18'
node-version: '20'
- name: npm install
run: npm install
- name: build website release
Expand All @@ -48,7 +45,4 @@ jobs:
run: npm run build-apps
- name: deploy to cesium.com
if: ${{ env.AWS_ACCESS_KEY_ID != '' }}
run: npm run deploy-s3 -- -b "cesium.com-next" -c 'public, max-age=1800'--skip --confirm
- name: set status
if: ${{ env.AWS_ACCESS_KEY_ID != '' }}
run: npm run deploy-status -- --status success --message Deployed
run: npm run deploy-s3 -- -b "cesium.com-next" -c 'public, max-age=1800'--skip --confirm

0 comments on commit 6905243

Please sign in to comment.