From 02e1a0bce608ad8e549ad043767b33361c9e3c55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Gangloff?= Date: Fri, 28 Apr 2023 23:22:32 +0200 Subject: [PATCH] chore: bump v1.4.6 --- .github/workflows/publish.yml | 36 ++++++++++++++++++++++------------- package.json | 2 +- 2 files changed, 24 insertions(+), 14 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index fd7f30d..aff9f0b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,20 +1,30 @@ -name: NPM Publish - +name: Publish Package to npmjs on: release: - types: [created] - + types: [published] jobs: - publish: + build: runs-on: ubuntu-latest + permissions: + contents: read + id-token: write steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 with: - node-version: "16.x" - registry-url: "https://registry.npmjs.org" - - run: yarn install - - run: yarn build - - run: npm publish --access public + node-version: '18.x' + registry-url: 'https://registry.npmjs.org' + + - name: Install Dependencies + run: yarn install + + - name: Lint + run: npx eslint src/ --ext .ts + + - name: Build + run: npx tsc + + - name: Publish + run: npm publish --provenance --access public env: - NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/package.json b/package.json index 6b4a8d0..9b58831 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "kdecole-api", - "version": "1.4.5", + "version": "1.4.6", "main": "dist/index.js", "types": "types/index.d.ts", "bin": {