Skip to content

Commit

Permalink
Merge pull request #88 from honey32/develop
Browse files Browse the repository at this point in the history
Release v1.2.0
  • Loading branch information
honey32 authored Jan 6, 2024
2 parents 54d54d3 + 1d52608 commit 6ad2fa2
Show file tree
Hide file tree
Showing 28 changed files with 3,407 additions and 1,908 deletions.
28 changes: 28 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "npm" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "weekly"
open-pull-requests-limit: 20
groups:
eslint:
patterns:
- eslint
- eslint-*
- '@typescript-eslint*'
jest:
patterns:
- jest
- '@types/jest'
- ts-jest
parcel:
patterns:
- parcel
- '@parcel/*'

6 changes: 3 additions & 3 deletions .github/workflows/deploy-typedoc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ jobs:
runs-on: ubuntu-latest # Ubuntuの最新版を実行環境とする
steps:
# https://github.com/actions/checkout
- uses: actions/checkout@v3
- uses: actions/checkout@v4
# https://github.com/actions/setup-node
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: '12' # Node 12を使う
node-version-file: 'package.json' # volta
- name: Dependencies
run: npm ci
- name: TypeDoc
Expand Down
53 changes: 53 additions & 0 deletions .github/workflows/increment-package-version.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# https://zenn.dev/team_zenn/articles/version-up-labeling

name: increment package.json version
on:
workflow_dispatch:
inputs:
version:
required: true
type: choice
options:
- major
- minor
- patch
- premajor
- preminor
- prepatch
- prerelease

jobs:
update_version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.repository.default_branch }}
- uses: actions/setup-node@v4
with:
node-version-file: 'package.json' # volta

- name: setup git
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git remote set-url origin https://github-actions:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: npm version
id: npm-version
run: |
version=$(npm version ${{ inputs.version }} --no-git-tag-version)
echo "version=$version" >> $GITHUB_OUTPUT
- name: commit
run: |
git add .
git commit -m "${{steps.npm-version.outputs.version}}"
- name: Create Pull Request
uses: peter-evans/create-pull-request@5ac05dbaf3e4c655ed87f1cbba980b9e5c490504
with:
title: npm version -> ${{steps.npm-version.outputs.version}}
branch: chore/npm_version/${{steps.npm-version.outputs.version}}
16 changes: 5 additions & 11 deletions .github/workflows/nodejs-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,15 @@ on:

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.3.0]

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
node-version-file: 'package.json' # volta
- name: Cache npm dir
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
Expand Down
1 change: 1 addition & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
Loading

0 comments on commit 6ad2fa2

Please sign in to comment.