Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
drcmda committed May 1, 2023
2 parents 95f9507 + 3a9998a commit cd7008c
Show file tree
Hide file tree
Showing 6 changed files with 2,232 additions and 56 deletions.
1 change: 0 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "16"
cache: "yarn"
- name: "install deps and build"
run: yarn install --frozen-lockfile
26 changes: 26 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Build and Release to npm
on:
push:
branches:
- 'master'

# Cancel any previous run (see: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#concurrency)
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
release-job:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
cache: 'yarn'
- id: main
run: |
yarn install --frozen-lockfile
yarn release
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
18.16.0
3 changes: 3 additions & 0 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"branches": ["master"]
}
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@react-three/postprocessing",
"version": "2.9.1",
"version": "0.0.0-semantic-release",
"description": "postprocessing wrapper for React and @react-three/fiber",
"keywords": [
"postprocessing",
Expand Down Expand Up @@ -41,7 +41,8 @@
"eslint:ci": "eslint . --ext=js,ts,jsx,tsx",
"test": "echo no tests yet",
"typecheck": "tsc --noEmit --emitDeclarationOnly false --strict --jsx react",
"typegen": "tsc --emitDeclarationOnly || true"
"typegen": "tsc --emitDeclarationOnly || true",
"release": "semantic-release"
},
"dependencies": {
"postprocessing": "^6.30.2",
Expand Down Expand Up @@ -73,6 +74,7 @@
"rimraf": "^5.0.0",
"rollup": "^3.21.0",
"rollup-plugin-filesize": "^10.0.0",
"semantic-release": "^21.0.2",
"three": "^0.151.3",
"typescript": "^5.0.4"
},
Expand Down
Loading

0 comments on commit cd7008c

Please sign in to comment.