Skip to content

chore: update dependencies versions and ci #46

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
40 changes: 40 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Build

on:
pull_request:

jobs:
build:
runs-on: ${{ matrix.os }}

# @see https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#concurrency
concurrency:
group: ${{ github.workflow }}-${{ matrix.os }}-${{ github.ref }}
cancel-in-progress: true

strategy:
matrix:
node-version: [22.x]
os: [windows-latest, ubuntu-latest]

steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/initialize
- uses: pnpm/action-setup@v4
with:
version: 9.10.0
- uses: actions/setup-node@v4
with:
node-version: "22.x"
cache: "pnpm"
- run: pnpm i --frozen-lockfile
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Test & Build
run: |
pnpm build
pnpm test
env:
CI: true
28 changes: 0 additions & 28 deletions .github/workflows/pull-request-workflow.yml

This file was deleted.

31 changes: 0 additions & 31 deletions .github/workflows/push-master-workflow.yml

This file was deleted.

41 changes: 0 additions & 41 deletions .github/workflows/release-workflow.yml

This file was deleted.

71 changes: 71 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: Release Workflow

on:
release:
types: [created]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: main
- uses: ./.github/actions/initialize
- uses: pnpm/action-setup@v4
with:
version: 9.10.0
- uses: actions/setup-node@v4
with:
node-version: "22.x"
registry-url: https://npm.pkg.github.com
scope: "@Himenon"
cache: "pnpm"
- run: pnpm i --frozen-lockfile
- run: |
pnpm build

release-github-registry:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: main
- uses: ./.github/actions/initialize
- uses: pnpm/action-setup@v4
with:
version: 9.10.0
- uses: actions/setup-node@v4
with:
node-version: "22.x"
registry-url: https://npm.pkg.github.com
scope: "@Himenon"
cache: "pnpm"
- run: pnpm install
- run: |
pnpm build
pnpm run release:github:registry
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

release-npm-registry:
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- uses: actions/checkout@v2
with:
ref: main
- uses: pnpm/action-setup@v4
with:
version: 9.10.0
- uses: actions/setup-node@v4
with:
node-version: "22.x"
registry-url: "https://registry.npmjs.org"
cache: "pnpm"
- run: pnpm install
- run: pnpm build
- run: NPM_CONFIG_PROVENANCE=true pnpm run release:npm:registry
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
26 changes: 26 additions & 0 deletions .github/workflows/versionUp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Version Up

on:
push:
branches: [main]

jobs:
auto-version-up:
if: github.event_name != 'pull_request'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: main
- uses: ./.github/actions/initialize
- uses: pnpm/action-setup@v4
with:
version: 9.10.0
- uses: actions/setup-node@v4
with:
node-version: "22.x"
cache: "pnpm"
- run: pnpm i --frozen-lockfile
- name: Auto version update
run: |
pnpm lerna:version:up
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"eslint.enable": true,
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
"source.fixAll.eslint": "explicit"
},
"typescript.tsdk": "node_modules/typescript/lib"
}
Loading
Loading