Skip to content

Migrate to GHA from publisher #2

Migrate to GHA from publisher

Migrate to GHA from publisher #2

Workflow file for this run

name: Basic Tests
on:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: npm
- name: Configure AWS Credentials
uses: mapbox/configure-aws-credentials-internal@v5
with:
target-account-id: ${{ vars.AWS_ACCOUNT_ID_DEFAULT }}
- name: Retrieve and configure npm token
uses: mapbox/setup-npm-token@v2
- name: Install npm dependencies
run: npm ci --no-fund --no-audit --prefer-offline
- name: Test
run: npm test