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

Commit

Permalink
feat: bump version to 0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lgou2w committed Aug 6, 2022
1 parent 086f7ad commit 78aac61
Show file tree
Hide file tree
Showing 6 changed files with 600 additions and 485 deletions.
31 changes: 15 additions & 16 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
matrix:
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,13 +35,16 @@ jobs:
needs: [build]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Setup QEMU
uses: docker/setup-qemu-action@v2

- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Login to Docker
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
registry: ${{ secrets.DOCKER_REGISTRY }}
username: ${{ secrets.DOCKER_USERNAME }}
Expand All @@ -53,11 +56,11 @@ jobs:
id: extract_tag

- name: Build and push image
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3
with:
push: true
context: .
file: ./Dockerfile
push: true
platforms: linux/amd64
tags: ${{ secrets.DOCKER_REGISTRY }}/picacomic-crawler:${{ steps.extract_tag.outputs.tag }}

Expand All @@ -66,7 +69,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 @@ -97,14 +100,10 @@ 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
body: |
${{ steps.changelog.outputs.value }}
token: ${{ secrets.TOKEN_GITHUB_PUBLISH }}
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
FROM node:16-alpine
MAINTAINER lgou2w <[email protected]>

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

WORKDIR /app
COPY package.json pnpm-lock.yaml /app/
Expand Down
33 changes: 17 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@l2studio/picacomic-crawler",
"version": "0.2.0",
"version": "0.3.0",
"description": "A picacomic cosplay crawler microservice",
"repository": "https://github.com/l2studio/picacomic-crawler.git",
"author": "lgou2w <[email protected]>",
Expand All @@ -17,25 +17,26 @@
"lint:fix": "eslint --fix --ext .js,.ts,.vue --ignore-path .gitignore ."
},
"dependencies": {
"@l2studio/picacomic-api": "^0.1.8",
"@l2studio/picacomic-api": "^0.1.13",
"cross-env": "^7.0.3",
"debug": "^4.3.3",
"dotenv": "^12.0.1",
"mongoose": "^6.1.6",
"node-cron": "^3.0.0"
"debug": "^4.3.4",
"dotenv": "^16.0.1",
"mongoose": "^6.5.1",
"node-cron": "^3.0.1",
"uuid": "^8.3.2"
},
"devDependencies": {
"@types/node": "^16",
"@types/node-cron": "^3.0.1",
"@typescript-eslint/eslint-plugin": "^5.9.1",
"@typescript-eslint/parser": "^5.9.1",
"eslint": "^8.6.0",
"eslint-config-standard": "^17.0.0-0",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-n": "^14.0.0",
"@types/node": "^16.11.47",
"@types/node-cron": "^3.0.2",
"@typescript-eslint/eslint-plugin": "^5.32.0",
"@typescript-eslint/parser": "^5.32.0",
"eslint": "^8.21.0",
"eslint-config-standard": "^17.0.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-n": "^15.2.4",
"eslint-plugin-promise": "^6.0.0",
"rimraf": "^3.0.2",
"ts-node": "^10.4.0",
"typescript": "^4.5.4"
"ts-node": "^10.9.1",
"typescript": "^4.7.4"
}
}
Loading

0 comments on commit 78aac61

Please sign in to comment.