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": {