Skip to content
This repository was archived by the owner on Dec 19, 2022. It is now read-only.

Commit 78aac61

Browse files
committed
feat: bump version to 0.3.0
1 parent 086f7ad commit 78aac61

File tree

6 files changed

+600
-485
lines changed

6 files changed

+600
-485
lines changed

.github/workflows/release.yml

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
matrix:
1313
node-version: [16.x]
1414
steps:
15-
- uses: actions/checkout@v2
15+
- uses: actions/checkout@v3
1616

1717
- name: Setup Node.js environment ${{ matrix.node-version }}
1818
uses: actions/setup-node@v2
@@ -22,7 +22,7 @@ jobs:
2222
- name: Setup PNPM
2323
uses: pnpm/action-setup@v2
2424
with:
25-
version: 6.x.x
25+
version: 7
2626
run_install: true
2727

2828
- name: ESLint check
@@ -35,13 +35,16 @@ jobs:
3535
needs: [build]
3636
runs-on: ubuntu-latest
3737
steps:
38-
- uses: actions/checkout@v2
38+
- uses: actions/checkout@v3
3939

40-
- name: Set up Docker Buildx
41-
uses: docker/setup-buildx-action@v1
40+
- name: Setup QEMU
41+
uses: docker/setup-qemu-action@v2
42+
43+
- name: Setup Docker Buildx
44+
uses: docker/setup-buildx-action@v2
4245

4346
- name: Login to Docker
44-
uses: docker/login-action@v1
47+
uses: docker/login-action@v2
4548
with:
4649
registry: ${{ secrets.DOCKER_REGISTRY }}
4750
username: ${{ secrets.DOCKER_USERNAME }}
@@ -53,11 +56,11 @@ jobs:
5356
id: extract_tag
5457

5558
- name: Build and push image
56-
uses: docker/build-push-action@v2
59+
uses: docker/build-push-action@v3
5760
with:
61+
push: true
5862
context: .
5963
file: ./Dockerfile
60-
push: true
6164
platforms: linux/amd64
6265
tags: ${{ secrets.DOCKER_REGISTRY }}/picacomic-crawler:${{ steps.extract_tag.outputs.tag }}
6366

@@ -66,7 +69,7 @@ jobs:
6669
runs-on: ubuntu-latest
6770
steps:
6871
- name: Checkout
69-
uses: actions/checkout@v2
72+
uses: actions/checkout@v3
7073
with:
7174
# Fetch all history
7275
fetch-depth: 0
@@ -97,14 +100,10 @@ jobs:
97100
changelog="${changelog//'%'/'%25'}"
98101
changelog="${changelog//$'\n'/' %0A'}"
99102
echo "::set-output name=value::Change set since ${last_tag:-the beginning}: %0A%0A$changelog"
103+
100104
- name: GitHub Release
101-
uses: actions/create-release@v1
105+
uses: softprops/action-gh-release@v1
102106
env:
103107
GITHUB_TOKEN: ${{ secrets.TOKEN_GITHUB_PUBLISH }}
104108
with:
105-
tag_name: ${{ github.ref }}
106-
release_name: ${{ github.ref }}
107-
draft: false
108-
prerelease: false
109-
body: |
110-
${{ steps.changelog.outputs.value }}
109+
token: ${{ secrets.TOKEN_GITHUB_PUBLISH }}

Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
FROM node:16-alpine
22
MAINTAINER lgou2w <lgou2w@hotmail.com>
33

4-
RUN apk add --no-cache curl
5-
RUN curl -f https://get.pnpm.io/v6.js | node - add --global pnpm
4+
RUN npm install --location=global pnpm@^7
65

76
WORKDIR /app
87
COPY package.json pnpm-lock.yaml /app/

package.json

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@l2studio/picacomic-crawler",
3-
"version": "0.2.0",
3+
"version": "0.3.0",
44
"description": "A picacomic cosplay crawler microservice",
55
"repository": "https://github.com/l2studio/picacomic-crawler.git",
66
"author": "lgou2w <lgou2w@hotmail.com>",
@@ -17,25 +17,26 @@
1717
"lint:fix": "eslint --fix --ext .js,.ts,.vue --ignore-path .gitignore ."
1818
},
1919
"dependencies": {
20-
"@l2studio/picacomic-api": "^0.1.8",
20+
"@l2studio/picacomic-api": "^0.1.13",
2121
"cross-env": "^7.0.3",
22-
"debug": "^4.3.3",
23-
"dotenv": "^12.0.1",
24-
"mongoose": "^6.1.6",
25-
"node-cron": "^3.0.0"
22+
"debug": "^4.3.4",
23+
"dotenv": "^16.0.1",
24+
"mongoose": "^6.5.1",
25+
"node-cron": "^3.0.1",
26+
"uuid": "^8.3.2"
2627
},
2728
"devDependencies": {
28-
"@types/node": "^16",
29-
"@types/node-cron": "^3.0.1",
30-
"@typescript-eslint/eslint-plugin": "^5.9.1",
31-
"@typescript-eslint/parser": "^5.9.1",
32-
"eslint": "^8.6.0",
33-
"eslint-config-standard": "^17.0.0-0",
34-
"eslint-plugin-import": "^2.25.4",
35-
"eslint-plugin-n": "^14.0.0",
29+
"@types/node": "^16.11.47",
30+
"@types/node-cron": "^3.0.2",
31+
"@typescript-eslint/eslint-plugin": "^5.32.0",
32+
"@typescript-eslint/parser": "^5.32.0",
33+
"eslint": "^8.21.0",
34+
"eslint-config-standard": "^17.0.0",
35+
"eslint-plugin-import": "^2.26.0",
36+
"eslint-plugin-n": "^15.2.4",
3637
"eslint-plugin-promise": "^6.0.0",
3738
"rimraf": "^3.0.2",
38-
"ts-node": "^10.4.0",
39-
"typescript": "^4.5.4"
39+
"ts-node": "^10.9.1",
40+
"typescript": "^4.7.4"
4041
}
4142
}

0 commit comments

Comments
 (0)