Skip to content

Update dependency node to v20.17.0 #722

Update dependency node to v20.17.0

Update dependency node to v20.17.0 #722

Workflow file for this run

name: release
on:
push:
branches:
- master
workflow_dispatch:
jobs:
update-draft-release:
runs-on: ubuntu-22.04
steps:
- id: release-drafter
uses: release-drafter/release-drafter@v6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
with:
ssh-key: ${{ secrets.DEPLOY_KEY }}
- uses: actions/setup-node@v4
with:
node-version-file: .node-version
cache: npm
- run: npm install
- run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git reset --hard
git clean -fd
npm version ${VERSION#v} --no-git-tag-version --allow-same-version
env:
VERSION: ${{ steps.release-drafter.outputs.tag_name }}
- id: pr
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: ${{ steps.release-drafter.outputs.tag_name }}
committer: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
author: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
branch: bump-version-${{ steps.release-drafter.outputs.tag_name }}
base: master
delete-branch: true
title: ${{ steps.release-drafter.outputs.tag_name }}
body: ""
labels: |
maintenance
- run: gh pr merge ${{ steps.pr.outputs.pull-request-url }} --auto --merge --delete-branch
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: ${{ steps.pr.outputs.pull-request-url != null }}
- run: npm run build
- uses: bgpat/release-asset-action@master
with:
pattern: web-ext-artifacts/*
github-token: ${{ secrets.GITHUB_TOKEN }}
release-id: ${{ steps.release-drafter.outputs.id }}
allow-overwrite: true