Skip to content

Commit

Permalink
Update package and release
Browse files Browse the repository at this point in the history
  • Loading branch information
Sven65 committed Sep 10, 2024
1 parent 828c65a commit 73edaa3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
11 changes: 11 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Update version in package.json
run: |
# Read the latest release version from environment variable
LATEST_VERSION="${{ env.LATEST_RELEASE }}"
# Update the "version" field in package.json using jq
jq --arg version "$LATEST_VERSION" '.version = $version' package.json > temp.json && mv temp.json package.json
- name: Setup node
uses: actions/setup-node@v3
with:
Expand All @@ -52,6 +59,10 @@ jobs:
- name: Run gulp
if: ${{ hashFiles('package-lock.json') != '' && hashFiles('gulp.js') != '' }}
run: gulp
- name: Publish npm package to GHCR
run: npm publish --registry=https://npm.pkg.github.com
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create assets zip
uses: thedoctor0/zip-release@0.7.5
if: ${{ hashFiles('dist/') != '' }}
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "api-volunteer-manager-integration",
"name": "@helsingborg-stad/api-volunteer-manager-integration",
"version": "3.0.3",
"description": "Frontend integration for api-volunteer-manager.",
"main": "",
Expand All @@ -12,6 +12,9 @@
"bugs": {
"url": "https://github.com/helsingborg-stad/api-volunteer-manager-integration/issues"
},
"files": [
"dist/"
],
"homepage": "https://github.com/helsingborg-stad/api-volunteer-manager-integration",
"devDependencies": {
"@babel/core": "^7.18.10",
Expand Down

0 comments on commit 73edaa3

Please sign in to comment.