Skip to content

Commit cd7008c

Browse files
committed
2 parents 95f9507 + 3a9998a commit cd7008c

File tree

6 files changed

+2232
-56
lines changed

6 files changed

+2232
-56
lines changed

.github/workflows/main.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ jobs:
1313
- uses: actions/checkout@v3
1414
- uses: actions/setup-node@v3
1515
with:
16-
node-version: "16"
1716
cache: "yarn"
1817
- name: "install deps and build"
1918
run: yarn install --frozen-lockfile

.github/workflows/release.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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+
cache: 'yarn'
20+
- id: main
21+
run: |
22+
yarn install --frozen-lockfile
23+
yarn release
24+
env:
25+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.node-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
18.16.0

.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)