diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml new file mode 100644 index 0000000..5311be6 --- /dev/null +++ b/.github/workflows/npm-publish.yml @@ -0,0 +1,26 @@ +name: Node.js package + +on: + release: + types: [created] + +jobs: + publish-npm: + name: Publish to npm + runs-on: ubuntu-latest + permissions: + contents: read + id-token: write + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v3 + with: + node-version: 20 + registry-url: https://registry.npmjs.org/ + cache: npm + - run: npm version ${TAG_NAME} --git-tag-version=false + env: + TAG_NAME: ${{ github.event.release.tag_name }} + - run: npm whoami; npm --ignore-scripts publish --provenance --access public + env: + NODE_AUTH_TOKEN: ${{secrets.npm_token}} diff --git a/package.json b/package.json index a37e876..3df6cee 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@whisthub/agenda", - "version": "6.3.0", + "version": "0.0.0", "description": "Light weight job scheduler for Node.js", "main": "dist/index.js", "types": "dist/index.d.ts", @@ -35,7 +35,7 @@ }, "repository": { "type": "git", - "url": "git://github.com/hokify/agenda" + "url": "git://github.com/whisthub/agenda" }, "keywords": [ "job",