Skip to content

Commit

Permalink
publish
Browse files Browse the repository at this point in the history
  • Loading branch information
aeltorio committed Oct 19, 2024
1 parent 5b4474d commit aa68fd4
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 178 deletions.
94 changes: 0 additions & 94 deletions .github/workflows/build.yml

This file was deleted.

35 changes: 35 additions & 0 deletions .github/workflows/publish-npm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# 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://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages

name: Publish to NPMJS

on:
release:
types: [created]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
- run: npm run build
- run: npm test

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 run build
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPMJS_TOKEN}}
58 changes: 0 additions & 58 deletions .github/workflows/release.yml

This file was deleted.

25 changes: 0 additions & 25 deletions .github/workflows/sast.yml

This file was deleted.

6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"version": "3.0.9",
"name": "httpsnippet",
"name": "@sctg/httpsnippet",
"description": "HTTP Request snippet generator for *most* languages",
"author": "Kong <[email protected]>",
"homepage": "https://github.com/Kong/httpsnippet",
Expand Down Expand Up @@ -92,5 +92,9 @@
"har-validator-compiled": "^1.0.0",
"stringify-object": "3.3.0",
"yargs": "^17.4.0"
},
"publishConfig": {
"tag": "latest",
"access": "public"
}
}

0 comments on commit aa68fd4

Please sign in to comment.