Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: update release build step #28

Merged
merged 2 commits into from
Feb 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,8 @@ jobs:
with:
release-type: node
default-branch: '${{ github.ref_name }}'
extra-files: >
[
{ "type": "json", "path": "libs/ng-keyboard-sort/package.json", "jsonpath": "$.version" }
]
changelog-notes-type: 'github'
package-name: ng-keyboard-sort
token: ${{ secrets.GH_TOKEN }}
changelog-types: >
[
Expand Down Expand Up @@ -56,6 +54,9 @@ jobs:
- name: Install
run: npm ci
if: ${{ steps.release.outputs.release_created && steps.cache-node-modules.outputs.cache-hit != 'true' }}
- name: Build
run: npm run build:package
if: ${{ steps.release.outputs.release_created && steps.cache-node-modules.outputs.cache-hit != 'true' }}
- name: Publish to NPM
if: ${{ steps.release.outputs.release_created }}
env:
Expand All @@ -64,5 +65,6 @@ jobs:
echo '//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}' >> ~/.npmrc
cd dist/ng-keyboard-sort
set -x
npm version ${{ steps.release.outputs.version }}
npm publish --access public --tag "v${{ steps.release.outputs.major }}-lts"
npm publish --access public --tag "latest"
2 changes: 1 addition & 1 deletion libs/ng-keyboard-sort/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "ng-keyboard-sort",
"description": "Angular keyboard sort directive",
"version": "1.1.0",
"version": "0.0.0",
"license": "MIT",
"repository": {
"type": "git",
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "ng-keyboard-sort",
"description": "Angular keyboard sort directive",
"version": "0.0.0",
"version": "1.1.0",
"license": "MIT",
"private": true,
"repository": {
Expand All @@ -13,6 +13,7 @@
"ng": "ng",
"start": "nx s e2e",
"build": "nx run-many --target=build --all",
"build:package": "nx run ng-keyboard-sort:build:production",
"watch": "nx build ng-keyboard-sort --watch --configuration development",
"test": "nx test ng-keyboard-sort --browsers=ChromeHeadless --code-coverage --watch=false",
"test:e2e": "nx test e2e --browsers=ChromeHeadless --code-coverage --watch=false",
Expand Down