sbv2-solana/.github/workflows/test-deploy.yml

27 lines
707 B
YAML
Raw Normal View History

2022-05-17 09:42:04 -07:00
name: Test deployment
on:
pull_request:
branches: [main]
paths: [website/**, ".github/workflows/*", "idl/**"]
jobs:
test-deploy:
name: Test deployment
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 16.x
cache: yarn
cache-dependency-path: "yarn.lock"
- name: Setup npmrc
run: echo "//registry.npmjs.org/:_authToken=${{secrets.NPM_AUTH_TOKEN}}" > .npmrc
- name: Setup yarnrc
run: echo "registry \"https://registry.npmjs.org\"" > .yarnrc
- name: Test build
run: |
yarn install --frozen-lockfile
yarn docs:build