Merge pull request #57 from navikt/dependabot/npm_and_yarn/frontend-1… #12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and deploy prod | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- 'main' | |
jobs: | |
sanity-deploy: | |
runs-on: ubuntu-latest | |
name: Deploy | |
steps: | |
- name: ⬇️ Checkout repo | |
uses: actions/checkout@v4 | |
- name: ⎔ Setup node | |
uses: actions/setup-node@v4 | |
with: | |
cache: yarn | |
cache-dependency-path: ./package.json | |
node-version: 20 | |
- name: Installer sanity | |
run: yarn global add @sanity/cli && sanity install | |
- name: Deploy sanity | |
env: | |
SANITY_AUTH_TOKEN: ${{ secrets.SANITY_DEPLOY_TOKEN }} | |
run: sanity deploy |