Skip to content

Commit

Permalink
fix(ci): publish pipeline & bump version to 1.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
saibotk committed Nov 2, 2023
1 parent 8345b0e commit 483d40f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@ jobs:
- name: Get package.json version
id: package-json-version
run: echo "version=$(cat package.json | jq '.version' --raw-output)" >> $GITHUB_OUTPUT
# Abort if the version in the package.json file (prefixed with 'v') doesn't match the tag name of the release

# Abort if the version in the package.json file doesn't match the tag name of the release
- name: Check package.json version against tag name
if: format('v{0}', steps.package-json-version.outputs.version) != github.event.release.tag_name
if: steps.package-json-version.outputs.version != github.event.release.tag_name
uses: actions/github-script@v3
with:
script: core.setFailed('Release tag does not match package.json version!')
Expand All @@ -41,6 +42,6 @@ jobs:
run: pnpm build

- name: Create Publish to npm
run: pnpm publish --provenance
run: pnpm publish --provenance --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to **dot-diver** will be documented here. Inspired by [keep

## Unreleased

## [1.0.3](https://github.com/clickbar/dot-diver/tree/1.0.3) (2023-11-03)

- Rerelease with fixed release pipeline 😅

## [1.0.2](https://github.com/clickbar/dot-diver/tree/1.0.2) (2023-11-02)

- Updated dependencies
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": "@clickbar/dot-diver",
"version": "1.0.2",
"version": "1.0.3",
"description": "Types and utilities to access object properties by dot notation.",
"packageManager": "[email protected]",
"types": "dist/index.d.ts",
Expand Down

0 comments on commit 483d40f

Please sign in to comment.