Skip to content

Commit 2734241

Browse files
committed
feat: @macroos/auth-hooks
1 parent 28cb4fd commit 2734241

File tree

5 files changed

+35
-10
lines changed

5 files changed

+35
-10
lines changed

.github/workflows/publish.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Publish
2+
on:
3+
release:
4+
types: [created]
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout
10+
uses: actions/checkout@v3
11+
- name: Setup Node
12+
uses: actions/setup-node@v2
13+
with:
14+
node-version: '16.x'
15+
registry-url: 'https://registry.npmjs.org'
16+
- name: Install dependencies and build
17+
run: npm install && npm run build
18+
- name: Publish package on NPM
19+
run: npm publish --access public
20+
env:
21+
NODE_AUTH_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,3 +104,4 @@ dist
104104
.tern-port
105105

106106
build/
107+
lib/

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
{
2-
"name": "@macro/auth-hooks",
2+
"name": "@macroos/auth-hooks",
33
"version": "1.0.0",
44
"description": "Hooks for implementing macro auth",
5-
"main": "index.js",
5+
"main": "./lib/index.js",
6+
"types": "./lib/index.d.ts",
67
"scripts": {
78
"build": "tsc -p ./"
89
},
10+
"files": [
11+
"lib/**/*"
12+
],
913
"repository": {
1014
"type": "git",
1115
"url": "git+https://github.com/coparse-inc/macro-auth-hooks.git"

tsconfig.json

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,17 @@
33
"target": "esnext",
44
"module": "commonjs",
55
"sourceMap": true,
6-
"outDir": "./build",
6+
"outDir": "./lib",
77
"rootDir": "./src",
88
"strict": true,
99
"moduleResolution": "node",
1010
"baseUrl": "./src",
11-
"esModuleInterop": true,
12-
"noImplicitAny": false,
13-
"skipLibCheck": true,
1411
"forceConsistentCasingInFileNames": true,
1512
"isolatedModules": true,
16-
"declaration": true
13+
"declaration": true,
14+
"esModuleInterop": true,
15+
"skipLibCheck": true
1716
},
18-
"include": ["src/**/*"],
17+
"include": ["src"],
1918
"exclude": ["node_modules"]
2019
}

0 commit comments

Comments
 (0)