Skip to content

Commit

Permalink
Merge pull request #4 from l2studio/main-v0.2
Browse files Browse the repository at this point in the history
Main v0.2
  • Loading branch information
lgou2w authored Aug 20, 2022
2 parents a16f1fc + 5cefd3d commit 397ca25
Show file tree
Hide file tree
Showing 13 changed files with 1,021 additions and 1,753 deletions.
11 changes: 9 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
module.exports = {
root: true,
env: {
node: true
},
extends: ['standard'],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 11,
sourceType: 'module'
},
plugins: ['@typescript-eslint']
extends: [
'standard',
'plugin:@typescript-eslint/recommended'
],
plugins: ['@typescript-eslint'],
rules: {
semi: [2, 'never']
}
}
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]
node-version: [16.x]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Setup Node.js environment ${{ matrix.node-version }}
uses: actions/setup-node@v2
Expand All @@ -22,7 +22,7 @@ jobs:
- name: Setup PNPM
uses: pnpm/action-setup@v2
with:
version: 6.x.x
version: 7
run_install: true

- name: ESLint check
Expand Down
28 changes: 13 additions & 15 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]
node-version: [16.x]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Setup Node.js environment ${{ matrix.node-version }}
uses: actions/setup-node@v2
Expand All @@ -22,7 +22,7 @@ jobs:
- name: Setup PNPM
uses: pnpm/action-setup@v2
with:
version: 6.x.x
version: 7
run_install: true

- name: ESLint check
Expand All @@ -35,16 +35,16 @@ jobs:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v2
with:
node-version: 12
node-version: 16
registry-url: https://registry.npmjs.org/

- name: Setup PNPM
uses: pnpm/action-setup@v2
with:
version: 6.x.x
version: 7
run_install: true

- name: Publish to NPM
Expand All @@ -56,17 +56,17 @@ jobs:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v2
with:
node-version: 12
node-version: 16
registry-url: https://npm.pkg.github.com/
scope: '@l2studio'

- name: Setup PNPM
uses: pnpm/action-setup@v2
with:
version: 6.x.x
version: 7
run_install: true

- run: echo registry=https://npm.pkg.github.com/l2studio >> .npmrc
Expand All @@ -80,7 +80,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
# Fetch all history
fetch-depth: 0
Expand Down Expand Up @@ -111,14 +111,12 @@ jobs:
changelog="${changelog//'%'/'%25'}"
changelog="${changelog//$'\n'/' %0A'}"
echo "::set-output name=value::Change set since ${last_tag:-the beginning}: %0A%0A$changelog"
- name: GitHub Release
uses: actions/create-release@v1
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.TOKEN_GITHUB_PUBLISH }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
draft: false
prerelease: false
token: ${{ secrets.TOKEN_GITHUB_PUBLISH }}
body: |
${{ steps.changelog.outputs.value }}
Loading

0 comments on commit 397ca25

Please sign in to comment.