Skip to content

Set up release workflow and NPM provenance #945

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Jun 1, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Set up pnpm caching
  • Loading branch information
Demivan committed Jun 1, 2025
commit cd1469840f73fcff3093e89acb1a0a05419995a5
18 changes: 15 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,25 @@
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.2.2
- name: Checkout
uses: actions/checkout@v4.2.2

- name: Install pnpm
uses: pnpm/action-setup@v4.1.0

- name: Setup Node.js
uses: actions/setup-node@v4.4.0
with:
cache: 'pnpm'

Check failure on line 31 in .github/workflows/release.yml

View workflow job for this annotation

GitHub Actions / Lint source code

Must use plain style scalar

- name: Install dependencies
run: pnpm install

- name: git config
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
- run: npm install
- run: npm run release -- --increment ${{github.event.inputs.increment}} --ci --dry-run
- run: pnpm run release -- --increment ${{github.event.inputs.increment}} --ci --dry-run
env:
# For release-it
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down
13 changes: 11 additions & 2 deletions .github/workflows/size.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,19 @@
steps:
- name: Checkout
uses: actions/checkout@v4.2.2

- name: Install pnpm
uses: pnpm/action-setup@v4.1.0

- name: Setup Node.js
uses: actions/setup-node@v4.4.0
- uses: pnpm/action-setup@v4.1.0
with:
cache: 'pnpm'

Check failure on line 25 in .github/workflows/size.yml

View workflow job for this annotation

GitHub Actions / Lint source code

Must use plain style scalar

- name: Install dependencies
run: pnpm install

- uses: antfu/export-size-action@v1
- name: Check size changes
uses: antfu/export-size-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
35 changes: 24 additions & 11 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,18 @@
steps:
- name: Checkout
uses: actions/checkout@v4.2.2

- name: Install pnpm
uses: pnpm/action-setup@v4.1.0

- name: Setup Node.js ${{ matrix.node }}
uses: actions/setup-node@v4.4.0
with:
node-version: ${{ matrix.node }}
- uses: pnpm/action-setup@v4.1.0
with:
run_install: true
cache: 'pnpm'

Check failure on line 32 in .github/workflows/test.yml

View workflow job for this annotation

GitHub Actions / Lint source code

Must use plain style scalar

- name: Install dependencies
run: pnpm install

- name: Test
run: pnpm test:${{ matrix.vue }} --coverage
Expand All @@ -44,11 +49,17 @@
steps:
- name: Checkout
uses: actions/checkout@v4.2.2
- name: Setup Node.js
uses: actions/setup-node@v4.4.0
- uses: pnpm/action-setup@v4.1.0

- name: Install pnpm
uses: pnpm/action-setup@v4

- name: Install Node.js
uses: actions/setup-node@v4
with:
run_install: true
cache: 'pnpm'

Check failure on line 59 in .github/workflows/test.yml

View workflow job for this annotation

GitHub Actions / Lint source code

Must use plain style scalar

- name: Install dependencies
run: pnpm install

- name: Lint
run: pnpm lint
Expand All @@ -61,11 +72,12 @@
steps:
- name: Checkout
uses: actions/checkout@v4.2.2
- name: Setup Node.js
uses: actions/setup-node@v4.4.0
- uses: pnpm/action-setup@v4.1.0
with:
run_install: true
- uses: actions/setup-node@v4.4.0
with:
cache: 'pnpm'

Check failure on line 80 in .github/workflows/test.yml

View workflow job for this annotation

GitHub Actions / Lint source code

Must use plain style scalar

- name: Build
run: pnpm build
Expand All @@ -83,9 +95,10 @@
with:
repository: fluent-vue/examples
path: examples
- name: Setup Node.js
uses: actions/setup-node@v4.4.0
- uses: pnpm/action-setup@v4.1.0
- uses: actions/setup-node@v4.4.0
with:
cache: 'pnpm'

Check failure on line 101 in .github/workflows/test.yml

View workflow job for this annotation

GitHub Actions / Lint source code

Must use plain style scalar

- name: Test
run: node scripts/build-examples.mjs
Loading
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy