chore(actions): update github actions

This commit is contained in:
ppoffice 2022-12-14 12:36:58 -05:00
parent 001dcb5159
commit 3fe1767abd
No known key found for this signature in database
GPG Key ID: D872802C1F2A16AA
4 changed files with 18 additions and 18 deletions

View File

@ -3,18 +3,18 @@ name: GitHub Release
on:
push:
tags:
- "*"
- '*'
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: writes
steps:
- uses: actions/checkout@v2
- uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v3
- uses: ncipollo/release-action@v1
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
tag: ${{ github.ref }}
name: ${{ github.ref }}
draft: true
prerelease: false

View File

@ -6,9 +6,9 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 12
node-version: latest
- run: npm install
- run: npm run lint

View File

@ -8,8 +8,8 @@ jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 12
registry-url: https://registry.npmjs.org/

View File

@ -7,23 +7,23 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12, 14, 16]
node-version: [12, latest]
fail-fast: false
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
repository: hexojs/hexo-starter
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
path: themes/icarus
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
repository: SukkaLab/hexo-many-posts
path: source/_posts/hexo-many-posts
- uses: actions/setup-node@v1
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- uses: actions/cache@v1
- uses: actions/cache@v3
with:
path: node_modules
key: npm-cache