Skip to content

Commit

Permalink
Merge pull request #4 from codingsamuel/build/release
Browse files Browse the repository at this point in the history
Build/release
  • Loading branch information
codingsamuel authored May 9, 2024
2 parents efb8da8 + 48f5944 commit ec633a7
Show file tree
Hide file tree
Showing 6 changed files with 53 additions and 8 deletions.
28 changes: 27 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ on:

jobs:
build:

runs-on: ubuntu-latest

strategy:
Expand All @@ -37,3 +36,30 @@ jobs:

- name: Build Material
run: npm run build material

publish-npm:
needs: build
runs-on: ubuntu-latest
if: success() && github.event_name == 'pull_request' && startsWith(github.head_ref, 'build/release')

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Use Node.js 20.x
uses: actions/setup-node@v2
with:
node-version: 20.x

- name: Authenticate with npm Registry
run: echo "//registry.npmjs.org/:_authToken=${{secrets.NPM_TOKEN}}" > ~/.npmrc
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Publish @mosa-ng/core package to npm Registry
run: npm publish --access public
working-directory: ./projects/core

- name: Publish @mosa-ng/material package to npm Registry
run: npm publish --access public
working-directory: ./projects/material
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Changelog

All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.

## 17.0.0 (2024-05-09)


### Features

* add commit-and-tag version ([fa6492d](https://github.com/codingsamuel/mosa-ng/commit/fa6492df5ab5945ca73a582356319f77f2ebf780))
* **Project:** add initial files ([578a5e1](https://github.com/codingsamuel/mosa-ng/commit/578a5e1e122f06e113ee121f9aaa10f6d6637e90))
* **Project:** add initial files ([10e60dc](https://github.com/codingsamuel/mosa-ng/commit/10e60dc677b1b41826a9b7c8f14f35c8fbfb9701))
* set up husky and commitlint ([8234735](https://github.com/codingsamuel/mosa-ng/commit/8234735ad192e000912b994e2f2da3f9d5b9ae69))
* set up husky and commitlint ([de569df](https://github.com/codingsamuel/mosa-ng/commit/de569dfb1f53485fddf17eeba6d071d54620349f))


### Bug Fixes

* **eslint:** fix eslint config ([a256b96](https://github.com/codingsamuel/mosa-ng/commit/a256b963fc4e5aa1020b48604db4be9971feedca))
* **eslint:** fix IDE error ([9aeedbd](https://github.com/codingsamuel/mosa-ng/commit/9aeedbdcc2110e40cb5ed70af34a2f5fbd8d340a))
2 changes: 1 addition & 1 deletion package-lock.json

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

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,12 @@
"lint": "ng lint",
"watch": "ng build --watch --configuration development",
"test": "ng test",
"prepare": "husky",
"release": "commit-and-tag-version",
"release:minor": "commit-and-tag-version --release-as minor",
"release:patch": "commit-and-tag-version --release-as patch",
"release:major": "commit-and-tag-version --release-as major"
},
"private": true,
"private": false,
"dependencies": {
"@angular/animations": "^17.3.0",
"@angular/cdk": "^17.3.7",
Expand Down
4 changes: 2 additions & 2 deletions projects/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"name": "@mosa-ng/core",
"version": "17.0.0",
"peerDependencies": {
"@angular/common": "^17.3.0",
"@angular/core": "^17.3.0"
"@angular/common": ">=17.0.0 < 18.0.0",
"@angular/core": ">=17.0.0 < 18.0.0"
},
"dependencies": {
"tslib": "^2.3.0"
Expand Down
4 changes: 2 additions & 2 deletions projects/material/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"name": "@mosa-ng/material",
"version": "17.0.0",
"peerDependencies": {
"@angular/common": "^17.3.0",
"@angular/core": "^17.3.0"
"@angular/common": ">=17.0.0 < 18.0.0",
"@angular/core": ">=17.0.0 < 18.0.0"
},
"dependencies": {
"tslib": "^2.3.0"
Expand Down

0 comments on commit ec633a7

Please sign in to comment.