Skip to content

Commit 9c97bce

Browse files
committed
Setup proper npmignore and fix version
1 parent 8912e7c commit 9c97bce

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
node-version: 16
1515
registry-url: https://registry.npmjs.org/
1616
- run: npm ci
17-
- run: npm
17+
- run: npm run build
1818
- run: npm publish --access public
1919
env:
2020
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

.npmignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
test.ts
2+
src/*
3+
.*
4+
*config.*

src/cli.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import * as sade from "sade";
2-
import { version } from "./package.json";
32
import handler from "./handler";
43

4+
const { version } = require("../package.json");
5+
56
const cli = sade(
67
"github-copy-secrets <secretsDirectory> <owner> <repository>",
78
true

src/package.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)