fix: clean up splash screen #65
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: Publish Packages on Version Change | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- master | |
env: | |
# Required for the `old-site` app to build | |
GH_USERNAME: ${{ secrets.GH_USERNAME }} | |
GH_PAT: ${{ secrets.GH_PAT }} | |
PUBLIC_URL: ${{ secrets.PUBLIC_URL }} | |
# Required for the `website` package to build | |
GOOGLE_API_KEY: ${{ secrets.GOOGLE_API_KEY }} | |
GOOGLE_CLIENT_ID: ${{ secrets.GOOGLE_CLIENT_ID }} | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v1 | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- name: Install Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Install Rush | |
run: pnpm install -g @microsoft/rush | |
- name: Install dependencies | |
run: rush install | |
- name: Build packages | |
run: NODE_ENV=production rush build | |
- name: Publish to npmjs Package Registry | |
run: | | |
rush publish --publish --include-all --registry https://registry.npmjs.org/ | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} | |
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} | |
- name: Publish to GitHub Package Registry | |
run: | | |
rush publish --publish --include-all --registry https://npm.pkg.github.com/ | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.GH_AUTH_TOKEN }} | |
GH_AUTH_TOKEN: ${{ secrets.GH_AUTH_TOKEN }} |