Skip to content

Commit

Permalink
Merge pull request #188 from gisaia/fix/releaseAction
Browse files Browse the repository at this point in the history
Fix/release action
  • Loading branch information
sebbousquet authored Sep 27, 2024
2 parents eddbd21 + 21e607c commit fe5ba3e
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 12 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4.1.4

- name: Use Node 16
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: 16

- name: Cache node modules
id: cache-nodemodules
uses: actions/cache@v2
uses: actions/cache@v4.0.2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
Expand All @@ -44,4 +44,4 @@ jobs:
DOCKER_PASSWORD: ${{ secrets.DOCKER_HUB_PASSWORD }}
run: |
echo "${DOCKER_PASSWORD}" | docker login -u "${DOCKER_USERNAME}" --password-stdin
./mkDocs.sh
./mkDocs.sh
5 changes: 4 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4.1.4
- uses: actions/setup-node@v4
with:
registry-url: 'https://registry.npmjs.org'
- name: Extract branch name
shell: bash
run: echo "branch=${GITHUB_REF#refs/heads/}" >> $GITHUB_OUTPUT
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change Log

## [v26.0.1-beta.1](https://github.com/gisaia/ARLAS-web-core/tree/v26.0.1-beta.1) (2024-09-27)

[Full Changelog](https://github.com/gisaia/ARLAS-web-core/compare/v26.0.0...v26.0.1-beta.1)

## [v26.0.0](https://github.com/gisaia/ARLAS-web-core/tree/v26.0.0) (2024-08-29)

[Full Changelog](https://github.com/gisaia/ARLAS-web-core/compare/v25.1.0...v26.0.0)
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "arlas-web-core",
"version": "26.1.0-dev0",
"version": "26.0.1-beta.1",
"description": "Core Service Library for ARLAS Web App",
"scripts": {
"build-release": "tsc -p tsconfig-build.json && cp -r patches dist/",
Expand Down
7 changes: 3 additions & 4 deletions release-actions.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
#!/bin/bash
set -e

npmlogin=`npm whoami`
if [ -z "$npmlogin" ] ; then echo "your are not logged on npm"; exit -1; else echo "logged as "$npmlogin ; fi

usage(){
echo "Usage: ./release.sh -version='1.0.0' -ref_branch=develop --stage=beta|rc|stable"
echo " -version arlas-web-core version release,level of evolution"
Expand Down Expand Up @@ -42,12 +39,14 @@ releaseProd(){

echo "=> Tag version $VERSION"
git add .
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
commit_message_release="Release prod version $VERSION"
git tag -a v"$VERSION" -m "$commit_message_release"
git push origin v"$VERSION"

echo "=> Generate CHANGELOG"
docker run -it --rm -v "$(pwd)":/usr/local/src/your-app gisaia/github-changelog-generator:latest github_changelog_generator \
docker run --rm -v "$(pwd)":/usr/local/src/your-app gisaia/github-changelog-generator:latest github_changelog_generator \
-u gisaia -p ARLAS-web-core --token ${GITHUB_CHANGELOG_TOKEN} --no-pr-wo-labels --no-issues-wo-labels --no-unreleased \
--issue-line-labels conf,documentation,CI,ALL,DONUT,RESULTLIST,POWERBARS,HISTOGRAM,MAP \
--exclude-labels type:duplicate,type:question,type:wontfix,type:invalid \
Expand Down

0 comments on commit fe5ba3e

Please sign in to comment.