Skip to content

chore(release): 6.0.8 #69

chore(release): 6.0.8

chore(release): 6.0.8 #69

Workflow file for this run

name: create new release
on:
push:
paths: 'dist/easy-upload.user.js'
branches: [master]
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/github-script@v6
with:
github-token: '${{ secrets.ACTION_TOKEN }}'
script: |
try {
const { default: getReleaseLog } = await import('${{ github.workspace }}/scripts/new-release.js');
await getReleaseLog(core);
await github.rest.repos.createRelease({
draft: false,
generate_release_notes: true,
name: process.env.version,
body: process.env.body,
owner: context.repo.owner,
prerelease: false,
repo: context.repo.repo,
tag_name: process.env.version,
});
} catch (error) {
core.setFailed(error.message);
}