From e80ef9509c80766a04241d9d252f7631a7f9e32d Mon Sep 17 00:00:00 2001 From: Moshe Atlow Date: Wed, 25 Oct 2023 14:59:25 +0300 Subject: [PATCH] change package npm destination --- .github/workflows/publish.yml | 18 ++++++++++++++++++ package.json | 4 ++-- 2 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..4322c00 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,18 @@ +name: Publish Package to npmjs +on: + release: + types: [published] +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + # Setup .npmrc file to publish to npm + - uses: actions/setup-node@v3 + with: + node-version: '20.x' + registry-url: 'https://registry.npmjs.org' + - run: npm ci + - run: npm publish + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/package.json b/package.json index f513fdd..88b75b3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { - "name": "nodejs-latest-linker", - "version": "1.7.0", + "name": "@node-core/latest-linker", + "version": "1.0.0", "description": "An application to create latest-X symlinks at https://nodejs.org/download/release/ after each new release", "main": "latest-linker.js", "scripts": {