Update workflows with v3 actions + permissions (#404)

* Update Spaces workflow

* Update Pages workflow

* Update test workflow
This commit is contained in:
Matt Cowley
2022-11-11 01:28:02 +00:00
committed by GitHub
parent 63aacfc644
commit f44832ed7a
3 changed files with 41 additions and 27 deletions

View File

@@ -2,17 +2,21 @@ name: Deploy to DigitalOcean Spaces
on: push
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3.5.0
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
node-version-file: .nvmrc
cache: npm
- name: Setup NPM
@@ -40,7 +44,7 @@ jobs:
AWS_SECRET_ACCESS_KEY: ${{ secrets.SPACES_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: ${{ secrets.SPACES_REGION }}
- name: Leave a comment
- name: Leave a comment on commit
run: npm run deploy:spaces:comment
env:
REPO_NAME: ${{ github.repository }}