Skip to content

Commit

Permalink
Merge pull request #45 from sgratzl/release/v4.0.1
Browse files Browse the repository at this point in the history
Release v4.0.1
  • Loading branch information
sgratzl authored Dec 10, 2022
2 parents 5555e53 + 404a1e0 commit ddea6e7
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 10 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/create_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ jobs:
- name: Change version number
id: version
run: |
echo -n "::set-output name=next_tag::"
npm version --no-git-tag-version ${{ github.event.inputs.versionName }} --preid ${{ github.event.inputs.preid }}
echo "next_tag=$(npm version --no-git-tag-version ${{ github.event.inputs.versionName }} --preid ${{ github.event.inputs.preid }})" >> $GITHUB_OUTPUT
- name: Create pull request into main
uses: peter-evans/create-pull-request@v4
with:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release_helper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,16 @@ jobs:
- name: Extract version
id: extract_version
run: |
node -pe "'::set-output name=version::' + require('./package.json').version"
node -pe "'::set-output name=npm_tag::' + (require('./package.json').version.includes('-') ? 'next' : 'latest')"
node -pe "'version=' + require('./package.json').version" >> $GITHUB_OUTPUT
node -pe "'npm_tag=' + (require('./package.json').version.includes('-') ? 'next' : 'latest')" >> $GITHUB_OUTPUT
- name: Print version
run: |
echo "releasing ${{ steps.extract_version.outputs.version }} with tag ${{ steps.extract_version.outputs.npm_tag }}"
- name: Create Release
id: create_release
uses: release-drafter/release-drafter@v5
env:
GITHUB_TOKEN: ${{ secrets.PRIVATE_GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
name: v${{ steps.extract_version.outputs.version }}
tag: v${{ steps.extract_version.outputs.version }}
Expand Down Expand Up @@ -70,7 +70,7 @@ jobs:
- run: yarn build
- run: yarn pack
- name: Upload Release Asset
uses: AButler/upload-release-assets@v2.0
uses: AButler/upload-release-assets@v2.0.2
with:
files: 'package.tgz'
repo-token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "chartjs-chart-error-bars",
"description": "Chart.js module for charting error bars",
"version": "4.0.0",
"version": "4.0.1",
"author": {
"name": "Samuel Gratzl",
"email": "samu@sgratzl.com",
Expand Down
2 changes: 1 addition & 1 deletion samples/bar.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<script src="https://unpkg.com/chart.js@4.0.1/dist/chart.js"></script>
<script src="https://unpkg.com/chart.js@4.0.1"></script>
<script src="../build/index.umd.js"></script>
</head>

Expand Down
2 changes: 1 addition & 1 deletion samples/line_scatter.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<script src="https://unpkg.com/chart.js@4.0.1/dist/chart.js"></script>
<script src="https://unpkg.com/chart.js@4.0.1"></script>
<script src="../build/index.umd.js"></script>
</head>

Expand Down
2 changes: 1 addition & 1 deletion samples/lines.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<script src="https://unpkg.com/chart.js@4.0.1/dist/chart.js"></script>
<script src="https://unpkg.com/chart.js@4.0.1"></script>
<script src="../build/index.umd.js"></script>
</head>

Expand Down

0 comments on commit ddea6e7

Please sign in to comment.