Skip to content

Commit

Permalink
update pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
youngbryanyu committed Jan 18, 2024
1 parent 5811062 commit c5112eb
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,11 +148,11 @@ jobs:
# Check if there were version number updates if code changed
- uses: actions/download-artifact@v4
with:
name: code-changes-artifact
name: code-changes-artifact
- name: Read Code Changes Flag From Artifact
run: |
echo "CODE_CHANGES=$(cat code_changes.txt)" >> $GITHUB_ENV
- name: Check if version number is updated
- name: Check if version number is updated
if: env.CODE_CHANGES == 'true'
run: |
LATEST_TAG=$(git describe --tags --abbrev=0)
Expand All @@ -176,7 +176,7 @@ jobs:
exit 1
fi
# Publish to NPM if the event was 'push'.
# Runs the publish to NPM step only if there were code changes
publish-npm:
Expand Down Expand Up @@ -233,12 +233,12 @@ jobs:
run: echo "RELEASE_VERSION=$(jq -r .version package.json)" >> $GITHUB_ENV
- name: Create Release # only run if there were code changes
if: env.CODE_CHANGES == 'true'
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ env.RELEASE_VERSION }}
release_name: Release ${{ env.RELEASE_VERSION }}
draft: false
prerelease: false
run: |
gh release create "$RELEASE_VERSION" \
--repo="$GITHUB_REPOSITORY" \
--title="${GITHUB_REPOSITORY#*/} ${RELEASE_VERSION#v}" \
--generate-notes
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Changelog
## 1.1.1 - 1/17/24
Update pipeline to not use deprecated release action.

## 1.1.0 - 1/17/24
Create input validation check for paths, where the input must not be outside the root dir of the project.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "simple-app-config",
"version": "1.1.0",
"version": "1.1.1",
"description": "A simple configuration manager for different environments",
"license": "MIT",
"repository": {
Expand Down

0 comments on commit c5112eb

Please sign in to comment.