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 merged versions | |
on: | |
push: | |
branches: [main] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: "18.x" | |
registry-url: "https://registry.npmjs.org/" | |
- name: Cache .pnpm-store | |
uses: actions/cache@v1 | |
with: | |
path: ~/.pnpm-store | |
key: ${{ runner.os }}-node${{ matrix.node-version }}-${{ hashFiles('**/pnpm-lock.yaml') }} | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- run: pnpm install | |
# - run: pnpm run update -r | |
- run: pnpm bootstrap | |
- run: pnpm run test | |
- name: Deploy npm Packages | |
run: npx pleb publish | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }} | |
- name: Setup Website | |
run: | | |
cd site | |
yarn install | |
yarn bootstrap | |
yarn build | |
- name: Deploy Site | |
uses: JamesIves/github-pages-deploy-action@4.1.3 | |
with: | |
branch: gh-pages | |
folder: site/out |