Skip to content

Commit

Permalink
add release workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Matthew B White <whitemat@uk.ibm.com>
  • Loading branch information
mbwhite committed Mar 29, 2022
1 parent bb8e6ff commit 812c0de
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
File renamed without changes.
23 changes: 23 additions & 0 deletions .github/workflows/release-workflow.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Publish package to GitHub Packages
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v2
# Setup .npmrc file to publish to GitHub Packages
- uses: actions/setup-node@v2
with:
node-version: '16.x'
registry-url: 'https://npm.pkg.github.com'
# Defaults to the user or organization that owns the workflow file
scope: '@ampretia'
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "dragon",
"name": "@ampretia/dragon",
"version": "0.4.0",
"description": "A tool for running sequence of larger tests",
"main": "dist/index.js",
Expand Down

0 comments on commit 812c0de

Please sign in to comment.