diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..1f2b3d6 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,23 @@ +# This workflow will publish a package to npm when a release is created +# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages + +name: Node.js Package + +on: + release: + types: [created] + +jobs: + publish-npm: + needs: build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 20 + registry-url: https://registry.npmjs.org/ + - run: npm ci + - run: npm publish + env: + NODE_AUTH_TOKEN: ${{secrets.npm_token}} diff --git a/package-lock.json b/package-lock.json index d26f743..464a7eb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@m-lab/packet-test", - "version": "0.0.6", + "version": "0.0.8", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@m-lab/packet-test", - "version": "0.0.6", + "version": "0.0.8", "hasInstallScript": true, "license": "ISC", "devDependencies": { diff --git a/package.json b/package.json index 049471f..c115183 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@m-lab/packet-test", - "version": "0.0.6", + "version": "0.0.8", "description": "", "main": "src/pt.js", "scripts": {