Skip to content

Commit

Permalink
Add repository and create package on release (#21)
Browse files Browse the repository at this point in the history
* Add repository

* Publish package to GitHub Packages

* Format action

---------

Co-authored-by: 3keyroman <46850604+3keyroman@users.noreply.github.com>
  • Loading branch information
vanbroup and 3keyroman authored Aug 21, 2024
1 parent 7ef22ea commit f01922c
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/release-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Publish package to GitHub Packages
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: ".node-version"
registry-url: "https://npm.pkg.github.com"
scope: "@pkic"
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
{
"name": "self-assessment",
"version": "1.0.0",
"repository": {
"type": "git",
"url": "https://github.com/pkic/self-assessment.git"
},
"main": "dist/bundle.js",
"scripts": {
"start": "webpack serve --mode development",
Expand Down

0 comments on commit f01922c

Please sign in to comment.