Skip to content

Commit 24ef48f

Browse files
committedMay 2, 2024·
add changeset for easier publish
1 parent 3095bf8 commit 24ef48f

File tree

4 files changed

+6129
-4
lines changed

4 files changed

+6129
-4
lines changed
 

‎.changeset/config.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/config@2.3.0/schema.json",
3+
"changelog": ["@changesets/changelog-github", { "repo": "rrweb-io/cssom" }],
4+
"commit": false,
5+
"linked": [],
6+
"access": "public",
7+
"baseBranch": "master",
8+
"updateInternalDependencies": "patch",
9+
"ignore": []
10+
}

‎.github/workflows/release.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
concurrency: ${{ github.workflow }}-${{ github.ref }}
9+
10+
jobs:
11+
release:
12+
name: Release
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout Repo
16+
uses: actions/checkout@v3
17+
18+
- name: Setup Node.js lts/*
19+
uses: actions/setup-node@v3
20+
with:
21+
node-version: lts/*
22+
23+
- name: Install Dependencies
24+
run: npm install
25+
26+
- name: Create Release Pull Request or Publish to npm
27+
id: changesets
28+
uses: changesets/action@v1
29+
with:
30+
publish: npm run release
31+
env:
32+
NODE_OPTIONS: '--max-old-space-size=4096'
33+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

‎package-lock.json

Lines changed: 6074 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,17 @@
1111
"author": "Nikita Vasilyev <me@elv1s.ru>",
1212
"repository": "rrweb-io/CSSOM",
1313
"files": [
14-
"lib/"
14+
"lib/",
15+
"build/"
1516
],
1617
"main": "./lib/index.js",
17-
"license": "MIT"
18+
"license": "MIT",
19+
"scripts": {
20+
"build": "node build.js",
21+
"release": "npm run build && changeset publish"
22+
},
23+
"devDependencies": {
24+
"@changesets/changelog-github": "^0.5.0",
25+
"@changesets/cli": "^2.27.1"
26+
}
1827
}

0 commit comments

Comments
 (0)
Please sign in to comment.