Skip to content

Commit fab7474

Browse files
committed
chore(semantic-release): setup
1 parent 5fc5406 commit fab7474

File tree

4 files changed

+2232
-55
lines changed

4 files changed

+2232
-55
lines changed

.github/workflows/release.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Build and Release to npm
2+
on:
3+
push:
4+
branches:
5+
- 'master'
6+
7+
# Cancel any previous run (see: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#concurrency)
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.ref }}
10+
cancel-in-progress: true
11+
12+
jobs:
13+
release-job:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v3
17+
- uses: actions/setup-node@v3
18+
with:
19+
node-version: '16'
20+
cache: 'yarn'
21+
- id: main
22+
run: |
23+
yarn install --frozen-lockfile
24+
yarn release
25+
env:
26+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.releaserc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"branches": ["master"]
3+
}

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@react-three/postprocessing",
3-
"version": "2.9.1",
3+
"version": "0.0.0-semantic-release",
44
"description": "postprocessing wrapper for React and @react-three/fiber",
55
"keywords": [
66
"postprocessing",
@@ -41,7 +41,8 @@
4141
"eslint:ci": "eslint . --ext=js,ts,jsx,tsx",
4242
"test": "echo no tests yet",
4343
"typecheck": "tsc --noEmit --emitDeclarationOnly false --strict --jsx react",
44-
"typegen": "tsc --emitDeclarationOnly || true"
44+
"typegen": "tsc --emitDeclarationOnly || true",
45+
"release": "semantic-release"
4546
},
4647
"dependencies": {
4748
"postprocessing": "^6.30.2",
@@ -73,6 +74,7 @@
7374
"rimraf": "^5.0.0",
7475
"rollup": "^3.21.0",
7576
"rollup-plugin-filesize": "^10.0.0",
77+
"semantic-release": "^21.0.2",
7678
"three": "^0.151.3",
7779
"typescript": "^5.0.4"
7880
},

0 commit comments

Comments
 (0)