Skip to content

Commit

Permalink
build: update packages and improve ci/cd
Browse files Browse the repository at this point in the history
  • Loading branch information
MaSch0212 committed Jul 20, 2024
1 parent 5ce81fd commit f4c95a9
Show file tree
Hide file tree
Showing 3 changed files with 7,636 additions and 6,404 deletions.
84 changes: 61 additions & 23 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,38 +1,76 @@
name: CI

name: Build
on:
workflow_dispatch:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
build:
name: Build
runs-on: ubuntu-latest

timeout-minutes: 10
steps:
- uses: actions/[email protected]
- name: Use Node.js 18.x
uses: actions/[email protected]
with:
node-version: 18.x
- name: Setup pnpm
uses: pnpm/[email protected]
- name: Checkout
uses: actions/checkout@v4

- name: Enable Corepack
run: corepack enable

- name: Setup Node.js
uses: actions/setup-node@v3
with:
version: 8.6.12
- name: Install
run: pnpm i
- name: Build
run: pnpm run build
node-version: 20
cache: pnpm

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Lint
run: pnpm run lint

- name: Test
id: test
run: pnpm run test
env:
FORCE_COLOR: 1
# - name: Publish Unit Test Results
# uses: EnricoMi/publish-unit-test-result-action@v1
# if: always()
# with:
# files: junit.xml

- name: Build
run: pnpm run build

- name: Upload dist
uses: actions/upload-artifact@v4
with:
name: dist
path: dist

publish:
name: Publish
needs: build
runs-on: ubuntu-latest
timeout-minutes: 20
if: github.ref == 'refs/heads/main'
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Download dist
uses: actions/download-artifact@v4
with:
name: dist
path: dist

- name: Publish @ngneers/easy-ngrx-distinct-selector
id: publish
uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}
package: dist

- name: Create Tag for @ngneers/easy-ngrx-distinct-selector
uses: rickstaa/action-create-tag@v1
with:
tag: v${{ steps.publish.outputs.version }}
tag_exists_error: false
53 changes: 29 additions & 24 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ngneers/easy-ngrx-distinct-selector",
"version": "0.1.1",
"version": "0.1.2",
"description": "Provides functions to easily create @ngrx/store selectors with equal functions for arguments and result values.",
"repository": "https://github.com/MaSch0212/easy-ngrx-distinct-selector.git",
"author": {
Expand Down Expand Up @@ -37,35 +37,40 @@
"equal"
],
"peerDependencies": {
"@ngrx/store": "^17.0.0"
"@ngrx/effects": "17 || 18",
"@ngrx/store": "17 || 18"
},
"devDependencies": {
"@angular/platform-browser-dynamic": "^17.0.3",
"@angular/compiler": "^17.0.3",
"@angular/compiler-cli": "^17.0.3",
"@angular/common": "^17.0.3",
"@angular/platform-browser": "^17.0.3",
"@angular-devkit/build-angular": "^17.0.1",
"@angular-devkit/build-angular": "^18.1.1",
"@angular/common": "^18.1.1",
"@angular/compiler": "^18.1.1",
"@angular/compiler-cli": "^18.1.1",
"@angular/core": "^18.1.1",
"@angular/platform-browser": "^18.1.1",
"@angular/platform-browser-dynamic": "^18.1.1",
"@ngneers/eslint-config": "^1.0.0",
"@ngneers/jest-config": "^1.0.0",
"@ngneers/jest-config-angular": "^1.0.0",
"@ngneers/prettier-config": "^1.0.0",
"@types/jest": "^29.5.8",
"@types/node": "^20.9.1",
"@typescript-eslint/eslint-plugin": "^6.11.0",
"@typescript-eslint/parser": "^6.11.0",
"eslint": "^8.54.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-import": "^2.29.0",
"eslint-plugin-unused-imports": "^3.0.0",
"immer": "^10.0.3",
"@ngrx/effects": "18.0.1",
"@types/jest": "^29.5.12",
"@types/node": "^20.14.11",
"@typescript-eslint/eslint-plugin": "^7.16.1",
"@typescript-eslint/parser": "^7.16.1",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-unused-imports": "^3.2.0",
"immer": "^10.1.1",
"jest": "^29.7.0",
"jest-junit": "^16.0.0",
"jest-preset-angular": "13.1.4",
"prettier": "^3.1.0",
"rimraf": "^5.0.5",
"ts-jest": "^29.1.1",
"ts-node": "^10.9.1",
"typescript": "^5.2.2"
}
"jest-preset-angular": "14.1.1",
"prettier": "^3.3.3",
"rimraf": "^6.0.1",
"rxjs": "^7.8.1",
"ts-jest": "^29.2.3",
"ts-node": "^10.9.2",
"typescript": "^5.5.3"
},
"packageManager": "[email protected]"
}
Loading

0 comments on commit f4c95a9

Please sign in to comment.