Skip to content

Commit

Permalink
Merge pull request #2 from Edgio/npm-publish-workflow
Browse files Browse the repository at this point in the history
Add NPM release workflow
  • Loading branch information
ArsalanDotMe authored Jun 3, 2024
2 parents 53f2286 + f545fca commit a1f9412
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 9 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# This workflow will run tests using node and then publish a package to GitHub Packages 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:
# temporary trigger for testing
workflow_dispatch:

release:
types: [created]

jobs:
publish-npm:
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}}
24 changes: 24 additions & 0 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,5 +1,5 @@
{
"name": "js-ectoken",
"name": "@edgio/ectoken",
"version": "1.0.0",
"description": "JS implementation of Edgio token (ectoken)",
"main": "index.js",
Expand Down
8 changes: 0 additions & 8 deletions yarn.lock

This file was deleted.

0 comments on commit a1f9412

Please sign in to comment.