Skip to content

Commit

Permalink
ci: publish continuous releases
Browse files Browse the repository at this point in the history
  • Loading branch information
prisis committed Aug 8, 2024
1 parent 9c5752b commit c408f6c
Show file tree
Hide file tree
Showing 3 changed files with 229 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,42 @@ jobs:
- name: Status
if: ${{ steps.generate.outcome == 'failure' || steps.diff.outcome == 'failure' }}
run: exit 1

pr-preview:
runs-on: ubuntu-latest
name: 'PR Preview: node-18, ubuntu-latest'
timeout-minutes: 10
needs: check-code-generation
permissions:
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
fetch-depth: 0

- name: Install pnpm
uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0

- name: Set node version to 18
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
with:
node-version: 18
cache: 'pnpm'

- name: Install deps
run: pnpm install
env:
CYPRESS_INSTALL_BINARY: 0

- name: Generate code
id: generate
run: |
pnpm run generate:locales
pnpm run build
continue-on-error: true
env:
CI_PREFLIGHT: true

- name: Publish a branch preview
run: pnpm exec pkg-pr-new publish
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@
"eslint-plugin-unicorn": "54.0.0",
"eslint-plugin-vitest": "0.5.4",
"npm-run-all2": "6.2.2",
"pkg-pr-new": "^0.0.20",
"prettier": "3.3.3",
"prettier-plugin-organize-imports": "4.0.0",
"rimraf": "5.0.10",
Expand Down
Loading

0 comments on commit c408f6c

Please sign in to comment.