Skip to content

Commit

Permalink
Merge pull request #3 from ScopeSV/deploy
Browse files Browse the repository at this point in the history
test release
  • Loading branch information
ScopeSV authored Oct 26, 2023
2 parents 171d163 + 8f2dcc8 commit ab94f47
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
20 changes: 20 additions & 0 deletions .github/workflows/release-please.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,23 @@ jobs:
with:
release-type: node
package-name: kycli
npm_publish:
name: Publish to npm
runs-on: ubuntu-latest
needs: [previous_job_name_if_any]
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '18'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: |
npm ci
npm build
- name: Publish to npm
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"kycli": "./dist/index.js"
},
"scripts": {
"build": "tsc && chmod +x ./dist/index.js && npm link",
"build-dev": "tsc && chmod +x ./dist/index.js && npm link",
"build": "tsc && chmod +x ./dist/index.js",
"test": "echo \"Error: no test specified\" && exit 1",
"start": "ts-node src/index.ts"
},
Expand Down

0 comments on commit ab94f47

Please sign in to comment.