We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4308f62 commit e4e82c8Copy full SHA for e4e82c8
.github/publish.yml
@@ -0,0 +1,20 @@
1
+name: Publish
2
+
3
+on:
4
+ release:
5
+ types: [created]
6
7
+jobs:
8
+ publish-npm:
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - uses: actions/checkout@v3
12
+ - uses: actions/setup-node@v3
13
+ with:
14
+ node-version: 16
15
+ registry-url: https://registry.npmjs.org/
16
+ - run: npm ci
17
+ - run: npm run release
18
+ - run: npm publish
19
+ env:
20
+ NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
package.json
@@ -10,7 +10,8 @@
"types": "dist/index.d.ts",
"scripts": {
"build": "tsup src/index.ts --format cjs,esm --dts",
- "lint": "tsc"
+ "lint": "tsc",
+ "release": "npm run lint && npm run build"
},
"dependencies": {
"@apollo/client": "^3.7.4",
0 commit comments