Skip to content

Commit

Permalink
Add GHCR Publish
Browse files Browse the repository at this point in the history
  • Loading branch information
Sven65 committed Sep 3, 2024
1 parent bdc7448 commit 29be454
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 16
registry-url: 'https://npm.pkg.github.com'
- name: Inject access token in .npmrc
run: |
echo "registry=https://npm.pkg.github.com/helsingborg-stad" >> ~/.npmrc
Expand All @@ -52,6 +53,10 @@ jobs:
- name: Run gulp
if: ${{ hashFiles('package-lock.json') != '' && hashFiles('gulp.js') != '' }}
run: gulp
- name: Publish npm package to GHCR
run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Create assets zip
uses: thedoctor0/[email protected]
if: ${{ hashFiles('dist/') != '' }}
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
"> 1%",
"not dead"
],
"files": [
"./dist"
],
"devDependencies": {
"autoprefixer": "^10.4.2",
"clean-webpack-plugin": "^4.0.0",
Expand Down

0 comments on commit 29be454

Please sign in to comment.