Skip to content

Commit

Permalink
Merge pull request #6 from m-lab/sandbox-cristinaleon-ci
Browse files Browse the repository at this point in the history
Add CI GitHub Actions workflow
  • Loading branch information
cristinaleonr authored Aug 20, 2024
2 parents 27eb28b + 4efe8fa commit 8250d6d
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 3 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -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}}
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@m-lab/packet-test",
"version": "0.0.6",
"version": "0.0.8",
"description": "",
"main": "src/pt.js",
"scripts": {
Expand Down

0 comments on commit 8250d6d

Please sign in to comment.