Skip to content

Commit d55d3a1

Browse files
committed
feat: publish to npm
1 parent 149d989 commit d55d3a1

File tree

4 files changed

+35
-2
lines changed

4 files changed

+35
-2
lines changed

.github/workflows/release.yml

+1
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,4 @@ jobs:
3131
run: npx semantic-release
3232
env:
3333
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.npmignore

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
*.log
2+
npm-debug.log*
3+
4+
# Coverage directory used by tools like istanbul
5+
coverage
6+
.nyc_output
7+
8+
# Dependency directories
9+
node_modules
10+
11+
# npm package lock
12+
package-lock.json
13+
yarn.lock
14+
15+
# project files
16+
src
17+
test
18+
examples
19+
example
20+
example-next-js
21+
umd_temp
22+
CHANGELOG.md
23+
.travis.yml
24+
.editorconfig
25+
.eslintignore
26+
.eslintrc
27+
.babelrc
28+
.gitignore

.releaserc.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
],
1616
"@semantic-release/commit-analyzer",
1717
"@semantic-release/release-notes-generator",
18-
"@semantic-release/github"
18+
"@semantic-release/github",
19+
"@semantic-release/npm"
1920
]
2021
}

package.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
"module": "dist/module/index.js",
77
"types": "dist/main/index.d.ts",
88
"sideEffects": false,
9-
"private": true,
109
"scripts": {
1110
"clean": "rimraf dist docs",
1211
"format": "prettier --write \"{src,test}/**/*.ts\"",
@@ -26,6 +25,10 @@
2625
"supabase"
2726
],
2827
"author": "Supabase",
28+
"files": [
29+
"dist",
30+
"src"
31+
],
2932
"license": "MIT",
3033
"bugs": {
3134
"url": "https://github.com/supabase/functions-js/issues"

0 commit comments

Comments
 (0)