Skip to content

Commit

Permalink
Merge pull request #5 from codingsamuel/build/release
Browse files Browse the repository at this point in the history
build: fix publish directory
  • Loading branch information
codingsamuel authored May 9, 2024
2 parents ec633a7 + b913c8f commit 6299ae0
Show file tree
Hide file tree
Showing 7 changed files with 99 additions and 35 deletions.
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ trim_trailing_whitespace = true
[*.ts]
quote_type = single

[*.yml]
indent_size = 2

[*.md]
max_line_length = off
trim_trailing_whitespace = false
84 changes: 54 additions & 30 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Node.js CI
name: Build

on:
push:
Expand All @@ -14,52 +14,76 @@ jobs:

strategy:
matrix:
node-version: [20.x]
node-version: [ 20.x ]

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

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Install dependencies
run: npm install
- name: Install dependencies
run: npm install

- name: Lint code
run: npm run lint
- name: Lint code
run: npm run lint

- name: Build Core
run: npm run build core
- name: Build Core
run: npm run build core

- name: Build Material
run: npm run build material
- name: Create Artifact for @mosa-ng/core
uses: actions/upload-artifact@v4
with:
name: mosa-ng-core
path: dist/@mosa-ng/core

- name: Build Material
run: npm run build material

- name: Create Artifact for @mosa-ng/material
uses: actions/upload-artifact@v4
with:
name: mosa-ng-material
path: dist/@mosa-ng/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: Checkout repository
uses: actions/checkout@v4

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

- name: Authenticate with npm Registry
run: echo "//registry.npmjs.org/:_authToken=${{secrets.NPM_TOKEN}}" > ~/.npmrc
env:
- 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: Get Artifact for core
uses: actions/download-artifact@v4
with:
name: mosa-ng-core
path: mosa-ng-core

- name: Publish @mosa-ng/core package to npm Registry
run: npm publish --access public
working-directory: ${{ github.workspace }}/mosa-ng-core

- name: Get Artifact for material
uses: actions/download-artifact@v4
with:
name: mosa-ng-material
path: mosa-ng-material

- name: Publish @mosa-ng/material package to npm Registry
run: npm publish --access public
working-directory: ./projects/material
- name: Publish @mosa-ng/material package to npm Registry
run: npm publish --access public
working-directory: ${{ github.workspace }}/mosa-ng-material
37 changes: 37 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,43 @@

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.1 (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

* access token ([48f5944](https://github.com/codingsamuel/mosa-ng/commit/48f59448c7096bd3571cfdeb9bbbda8922de837f))
* change peer dependency to >17 ([bc0f0ac](https://github.com/codingsamuel/mosa-ng/commit/bc0f0acf5bc9b1d22fe81aa6e92a59ae2c9dca60))
* **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))
* fix publish directory ([3a0e40a](https://github.com/codingsamuel/mosa-ng/commit/3a0e40af66374042ee5eff959303c697283eed0d))
* fix publish directory ([e3cd300](https://github.com/codingsamuel/mosa-ng/commit/e3cd30027e9680d2556d3d9f15ba2dec86e102da))
* fix publish directory ([d26497b](https://github.com/codingsamuel/mosa-ng/commit/d26497bf7e37986965ae45fe9af470d39e3e9fe4))
* fix publish directory ([722b47f](https://github.com/codingsamuel/mosa-ng/commit/722b47ff77b672d0f0ebeb88118e3c0d7fb6b108))
* fix publish directory ([4e92fd6](https://github.com/codingsamuel/mosa-ng/commit/4e92fd6bf5aae4bb3a52f31b9192545d98e91f79))
* fix publish directory ([8267132](https://github.com/codingsamuel/mosa-ng/commit/826713295d7577ae67bf904052cdff7acc0238ec))
* fix publish directory ([7d38c03](https://github.com/codingsamuel/mosa-ng/commit/7d38c03ae74f6637347565d703d4fd4d9859d0ca))
* fix publish directory ([6174f4e](https://github.com/codingsamuel/mosa-ng/commit/6174f4eebcc3c5e963cd31bc4c9f6aa76b72e7a0))
* fix publish directory ([43442fa](https://github.com/codingsamuel/mosa-ng/commit/43442fa97e40ebb6331853ee6b6d1f496fd91120))
* fix pull request ([a444efd](https://github.com/codingsamuel/mosa-ng/commit/a444efdbbc5679f3766ce9abe6d9e01368d2bf89))
* list files ([52a56ce](https://github.com/codingsamuel/mosa-ng/commit/52a56ce5e2667b6d392f1ba4afe11ad053ff8843))
* remove prepare ([3fc3f8e](https://github.com/codingsamuel/mosa-ng/commit/3fc3f8e7882a996697ae5bed237eee1bd0f899e0))
* remove private from package.json ([a6df9d3](https://github.com/codingsamuel/mosa-ng/commit/a6df9d39566970050726b18071cb4f343aa4d629))
* remove private from package.json ([34a488b](https://github.com/codingsamuel/mosa-ng/commit/34a488bf53213c8d7a70b5c58b98288ac9520c32))
* remove private from package.json ([357d623](https://github.com/codingsamuel/mosa-ng/commit/357d62369077976a87a25217a0b8117fd00d8a7c))
* use v2 actions ([c4fc263](https://github.com/codingsamuel/mosa-ng/commit/c4fc263b69aac1ea34c5f62e66dbe5ca80f19d5d))
* use v3 actions ([90977df](https://github.com/codingsamuel/mosa-ng/commit/90977dff8ceb06606c0d3e8f091dec45141019fc))
* use v4 actions ([64c4695](https://github.com/codingsamuel/mosa-ng/commit/64c4695560fd3a4156d006a126ca47b769e57c96))

## 17.0.0 (2024-05-09)


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.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mosa-ng",
"version": "17.0.0",
"version": "17.0.1",
"scripts": {
"ng": "ng",
"start": "ng serve",
Expand Down
2 changes: 1 addition & 1 deletion projects/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mosa-ng/core",
"version": "17.0.0",
"version": "17.0.1",
"peerDependencies": {
"@angular/common": ">=17.0.0 < 18.0.0",
"@angular/core": ">=17.0.0 < 18.0.0"
Expand Down
2 changes: 1 addition & 1 deletion projects/material/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mosa-ng/material",
"version": "17.0.0",
"version": "17.0.1",
"peerDependencies": {
"@angular/common": ">=17.0.0 < 18.0.0",
"@angular/core": ">=17.0.0 < 18.0.0"
Expand Down

0 comments on commit 6299ae0

Please sign in to comment.