From 1b04b4a6d15d523f5665c44dfe035643463f0e46 Mon Sep 17 00:00:00 2001 From: Stephan B Valois <83061036+ScopeSV@users.noreply.github.com> Date: Thu, 26 Oct 2023 13:28:53 +0200 Subject: [PATCH 1/2] test release --- .github/workflows/release-please.yaml | 21 +++++++++++++++++++++ package.json | 3 ++- 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-please.yaml b/.github/workflows/release-please.yaml index 2a2b8ff..24743c7 100644 --- a/.github/workflows/release-please.yaml +++ b/.github/workflows/release-please.yaml @@ -17,3 +17,24 @@ 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 }} diff --git a/package.json b/package.json index a5173f7..78993b3 100644 --- a/package.json +++ b/package.json @@ -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" }, From 8f2dcc81168486acc8431b2fd937823267670300 Mon Sep 17 00:00:00 2001 From: Stephan B Valois <83061036+ScopeSV@users.noreply.github.com> Date: Thu, 26 Oct 2023 13:33:48 +0200 Subject: [PATCH 2/2] feat: test --- .github/workflows/release-please.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/release-please.yaml b/.github/workflows/release-please.yaml index 24743c7..d99e85e 100644 --- a/.github/workflows/release-please.yaml +++ b/.github/workflows/release-please.yaml @@ -17,7 +17,6 @@ jobs: with: release-type: node package-name: kycli - npm_publish: name: Publish to npm runs-on: ubuntu-latest