fix(server): loosen requirements on statics (#353) #296
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: release | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
jobs: | |
release: | |
name: Release | |
runs-on: ubuntu-latest | |
outputs: | |
releases_created: ${{steps.release.outputs.releases_created}} | |
steps: | |
- name: Running Release Please | |
uses: google-github-actions/release-please-action@v3 | |
id: release | |
with: | |
command: manifest | |
token: ${{secrets.GITHUB_TOKEN}} | |
default-branch: main | |
config-file: .github/release-please-config.json | |
manifest-file: .github/release-please-manifest.json | |
release-type: node | |
publish: | |
name: Publish | |
needs: release | |
if: ${{needs.release.outputs.releases_created}} | |
runs-on: ubuntu-latest | |
steps: | |
# The logic below handles the npm publication: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install | |
uses: pnpm/[email protected] | |
with: | |
version: 7 | |
- name: Setup | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 16 | |
registry-url: https://registry.npmjs.org/ | |
cache: 'pnpm' | |
- name: Build | |
run: | | |
pnpm install | |
pnpm run --if-present build | |
- name: Publish | |
run: pnpm -r publish --access=public | |
env: | |
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} |