pre release ci #14
Workflow file for this run
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: PR Release | |
on: | |
pull_request: | |
branches: [main] | |
jobs: | |
pr-release: | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install and cache nodejs | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
- uses: pnpm/action-setup@v2 | |
name: Install pnpm | |
with: | |
version: 8 | |
run_install: false | |
- name: Install packages | |
run: pnpm i --ignore-scripts | |
- name: Build | |
run: pnpm build --filter='./packages/*' | |
- name: Publish | |
uses: kotarella1110/pr-voyager@v0 | |
with: | |
publish: pnpm publish -r --ignore-scripts --access public --filter "@location-state/*" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |