Skip to content

Commit

Permalink
ci: implement pkg.pr.new (#220)
Browse files Browse the repository at this point in the history
  • Loading branch information
BobbieGoede authored Aug 28, 2024
1 parent eb7c01d commit a33c5b9
Show file tree
Hide file tree
Showing 3 changed files with 259 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/nightly-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: nightly release
on:
push:
branches:
- '**'
tags:
- '!**'
pull_request:
types: [opened, synchronize, labeled, ready_for_review]
branches: [main]
paths-ignore:
- 'docs/**'
- 'playgrounds/**'

jobs:
release:
if: ${{ !github.event.pull_request.draft && contains(github.event.pull_request.labels.*.name, 'cr-tracked') }}
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Enable corepack
run: corepack enable

- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 18.18
cache: pnpm

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Build
run: pnpm build

- name: Release with pkg-pr-new
run: pnpx pkg-pr-new publish --compact --pnpm
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "@vueuse/motion",
"type": "module",
"version": "2.2.3",
"packageManager": "[email protected]+sha512.b051a32c7e695833b84926d3b29b8cca57254b589f0649d899c6e9d0edb670b91ec7e2a43459bae73759bb5ce619c3266f116bf931ce22d1ef1759a7e45aa96f",
"description": "🤹 Vue Composables putting your components in motion",
"author": "Yaël GUILLOUX <[email protected]>",
"license": "MIT",
Expand Down Expand Up @@ -95,6 +96,7 @@
"eslint": "^9.3.0",
"happy-dom": "^14.12.0",
"lint-staged": "^15.2.5",
"pkg-pr-new": "^0.0.20",
"prettier": "^3.2.5",
"typescript": "^5.4.5",
"unbuild": "^2.0.0",
Expand Down
217 changes: 217 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a33c5b9

Please sign in to comment.