Bygg preview med nyere JS støtte #82
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: Deploy to GitHub pages | |
on: | |
push: | |
branches: [master] | |
concurrency: | |
group: gh-pages-master | |
cancel-in-progress: true | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
jobs: | |
gh-pages: | |
runs-on: ubuntu-latest | |
name: Deploy preview to gh-pages | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: oven-sh/setup-bun@v2 | |
with: | |
registry-url: https://npm.pkg.github.com | |
scope: "@navikt" | |
- run: bun install | |
working-directory: './packages/internarbeidsflate-decorator-v3' | |
env: | |
BUN_AUTH_TOKEN: ${{ secrets.READER_TOKEN }} | |
- name: Build preview | |
working-directory: './packages/internarbeidsflate-decorator-v3' | |
run: bun run build:preview | |
- uses: actions/configure-pages@v4 | |
- uses: actions/upload-pages-artifact@v3 | |
with: | |
path: ./packages/internarbeidsflate-decorator-v3/dist | |
- uses: actions/deploy-pages@v4 | |
id: deployment |