Skip to content

chore: set svelte build dir #526

chore: set svelte build dir

chore: set svelte build dir #526

on:
push:
branches:
- main
name: release-please
jobs:
release-please:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
id-token: write
steps:
- uses: navikt/github-app-token-generator@v1
id: get-token
with:
private-key: ${{ secrets.APP_PRIVATE_KEY }}
app-id: ${{ secrets.APP_ID }}
- uses: google-github-actions/release-please-action@v4
id: release
with:
command: manifest
token: ${{ steps.get-token.outputs.token }}
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
with:
version: latest
- uses: actions/setup-node@v4
with:
cache: "pnpm"
check-latest: true
registry-url: "https://registry.npmjs.org"
- name: Install dependencies
run: pnpm install
- run: pnpm build:packages
if: ${{ steps.release.outputs.releases_created }}
- name: Authenticate pnpm
run:
pnpm config set '//registry.npmjs.org/:_authToken' "${NPM_AUTH_TOKEN}"
if: ${{ steps.release.outputs.releases_created }}
env:
NPM_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
- run: pnpm -r publish --filter "@unpic/*"
env:
NPM_CONFIG_PROVENANCE: true
if: ${{ steps.release.outputs.releases_created }}