Bump undici and @sveltejs/kit in /static-site #39
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 publish lib | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
release: | |
types: | |
- published | |
workflow_dispatch: | |
repository_dispatch: | |
jobs: | |
build-and-publish: | |
name: Build and publish | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
concurrency: build-and-publish | |
defaults: | |
run: | |
working-directory: ./lib | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version-file: ./lib/.nvmrc | |
- run: npm ci --no-fund --prefer-offline --no-audit | |
- name: Set version in package.json | |
if: github.event_name == 'release' | |
run: npm version --no-git-tag-version "${{ github.ref_name }}" | |
- run: npm run build | |
- run: npm publish | |
if: github.event_name == 'release' | |
env: | |
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} |