Skip to content

Commit f2b35d8

Browse files
committed
feat(*): switch to pnpm and improve ci/cd (#7)
1 parent 26d7324 commit f2b35d8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+16689
-30800
lines changed

.changeset/config.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/config@3.1.1/schema.json",
3+
"changelog": "@changesets/cli/changelog",
4+
"commit": false,
5+
"fixed": [],
6+
"linked": [],
7+
"access": "public",
8+
"baseBranch": "main",
9+
"privatePackages": false,
10+
"updateInternalDependencies": "patch",
11+
"ignore": [
12+
"examples-*"
13+
]
14+
}

.changeset/fine-wasps-try.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
'@paprize/puppeteer': patch
3+
'@paprize/vanilla': patch
4+
'@paprize/react': patch
5+
'@paprize/core': patch
6+
---
7+
8+
switch to pnpm

.github/workflows/changesets.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Changesets
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- "packages/**"
9+
workflow_dispatch:
10+
11+
env:
12+
CI: true
13+
14+
jobs:
15+
version:
16+
timeout-minutes: 15
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Checkout code repository
20+
uses: actions/checkout@v4
21+
22+
- name: Setup pnpm
23+
uses: pnpm/action-setup@v4
24+
25+
- name: Setup node.js
26+
uses: actions/setup-node@v4
27+
with:
28+
node-version: lts/*
29+
cache: "pnpm"
30+
31+
- name: Install dependencies
32+
run: pnpm install
33+
34+
- name: Create and publish versions
35+
uses: changesets/action@v1
36+
with:
37+
commit: "chore: update versions"
38+
title: "chore: update versions"
39+
publish: pnpm run release
40+
env:
41+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Lines changed: 51 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,58 @@
11
name: Deploy Website
22

33
on:
4-
push:
5-
branches:
6-
- main
7-
paths:
8-
- 'packages/website/**'
9-
workflow_dispatch:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- "packages/website/**"
9+
workflow_dispatch:
1010

1111
permissions:
12-
contents: read
13-
pages: write
14-
id-token: write
12+
contents: read
13+
pages: write
14+
id-token: write
1515

1616
jobs:
17-
build:
18-
name: Deploy Website
19-
runs-on: ubuntu-latest
20-
steps:
21-
- uses: actions/checkout@v4
22-
- uses: actions/setup-node@v4
23-
with:
24-
node-version: lts/*
25-
cache: npm
26-
27-
- name: Install dependencies
28-
run: npm ci
29-
- name: Build
30-
run: npm run website:build
31-
- name: Upload web artifact
32-
uses: actions/upload-pages-artifact@v3
33-
with:
34-
path: './packages/website/build'
35-
36-
deploy:
37-
needs: build
38-
runs-on: ubuntu-latest
39-
if: success()
40-
environment:
41-
name: github-pages
42-
url: ${{ steps.deployment.outputs.page_url }}
43-
steps:
44-
- uses: actions/download-artifact@v4
45-
- name: Setup Pages
46-
uses: actions/configure-pages@v5
47-
- name: Deploy to GitHub Pages
48-
id: deployment
49-
uses: actions/deploy-pages@v4
17+
build:
18+
name: Deploy Website
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v4
22+
23+
- name: Setup pnpm
24+
uses: pnpm/action-setup@v4
25+
26+
- name: Setup node.js
27+
uses: actions/setup-node@v4
28+
with:
29+
node-version: lts/*
30+
cache: "pnpm"
31+
32+
- name: Install dependencies
33+
run: pnpm install
34+
35+
- name: Build
36+
run: pnpm run website:build
37+
38+
- name: Upload web artifact
39+
uses: actions/upload-pages-artifact@v3
40+
with:
41+
path: "./packages/website/build"
42+
43+
deploy:
44+
needs: build
45+
runs-on: ubuntu-latest
46+
if: success()
47+
environment:
48+
name: github-pages
49+
url: ${{ steps.deployment.outputs.page_url }}
50+
steps:
51+
- uses: actions/download-artifact@v4
52+
53+
- name: Setup Pages
54+
uses: actions/configure-pages@v5
55+
56+
- name: Deploy to GitHub Pages
57+
id: deployment
58+
uses: actions/deploy-pages@v4

.github/workflows/publish-npm.yml

Lines changed: 0 additions & 36 deletions
This file was deleted.
-23 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)