Merge pull request #53 from navikt/dependabot/npm_and_yarn/npm_and_ya… #10
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 |