diff --git a/.github/workflows/github-release.yml b/.github/workflows/github-release.yml index 54336dc..7c49340 100644 --- a/.github/workflows/github-release.yml +++ b/.github/workflows/github-release.yml @@ -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 diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 0dc1bc7..746c13a 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -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 diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 3867f39..830e4c0 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -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/ diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4a9390b..f07778d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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