-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: replace bump lib by jscutlery/semver
- Loading branch information
Showing
19 changed files
with
1,382 additions
and
369 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,43 +9,22 @@ inputs: | |
npm-token: | ||
description: NPM token | ||
required: true | ||
version: | ||
description: version type (patch, minor, major, ...) | ||
required: true | ||
last-release: | ||
description: previous release commit hash | ||
required: true | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Version | ||
env: | ||
GITHUB_TOKEN: ${{ inputs.github-token }} | ||
- name: Setup Git | ||
shell: bash | ||
run: npx nx affected --base=${{ inputs.last-release }} --target=version --type=${{ inputs.version }} | ||
run: | | ||
git config user.name "GitHub Bot" | ||
git config user.email "[email protected]" | ||
- name: Publish on NPM | ||
shell: bash | ||
run: npx nx affected --base=${{ inputs.last-release }} --target=publish | ||
- name: Version | ||
env: | ||
GITHUB_TOKEN: ${{ inputs.github-token }} | ||
NODE_AUTH_TOKEN: ${{ inputs.npm-token }} | ||
|
||
- name: Get package version | ||
id: package-version | ||
uses: martinbeentjes/npm-get-version-action@main | ||
with: | ||
path: packages/nx-heroku | ||
|
||
- name: Tag last-release | ||
shell: bash | ||
run: git tag -f ${{ steps.package-version.outputs.current-version }} | ||
|
||
- name: Push changes | ||
uses: ad-m/github-push-action@master | ||
with: | ||
github_token: ${{ inputs.github-token }} | ||
branch: ${{ github.ref }} | ||
force: true | ||
tags: true | ||
run: npx nx affected --base=${{ inputs.last-release }} --target=version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.