Skip to content

Commit

Permalink
Use release-it for alpha release to test workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeSchwert committed Aug 2, 2023
1 parent d48fb0b commit 4e35543
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 12 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -114,20 +114,20 @@ jobs:
run: |
echo "$(git push --tags)"
- name: Pre Release Step
if: contains(github.event.inputs.release_type, 'alpha')
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.PLATFORM_SA_NPM_TOKEN }}
access: public
package: ./sdk/package.json
tag: ${{ contains(github.event.inputs.release_type, 'alpha') && 'alpha' }}
dry-run: ${{ github.event.inputs.dry_run }}
# - name: Pre Release Step
# if: contains(github.event.inputs.release_type, 'alpha')
# uses: JS-DevTools/npm-publish@v1
# with:
# token: ${{ secrets.PLATFORM_SA_NPM_TOKEN }}
# access: public
# package: ./sdk/package.json
# tag: ${{ contains(github.event.inputs.release_type, 'alpha') && 'alpha' }}
# dry-run: ${{ github.event.inputs.dry_run }}

- name: Authenticate NPM
if: contains(github.event.inputs.release_type, 'release')
if: contains(github.event.inputs.release_type, 'alpha')
run: npm config set //registry.npmjs.org/:_authToken ${{ secrets.PLATFORM_SA_NPM_TOKEN }}

- name: Release
if: contains(github.event.inputs.release_type, 'release')
if: contains(github.event.inputs.release_type, 'alpha')
run: yarn release --ci --no-increment -c .release-it.json $( ${{ github.event.inputs.dry_run }} && echo "--dry-run" || echo "") --github.tokenRef=${{ secrets.PLATFORM_SA_GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .release-it.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
"@release-it-plugins/workspaces": {
"workspaces": ["sdk"],
"publish": true
"publish": false
}
}
}
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed

- @imtbl/immutablex_client: Updated to use core-sdk v2.0.2 with grind key fixes.
- Changelog automation.

### Changed

Expand Down

0 comments on commit 4e35543

Please sign in to comment.