Skip to content

Commit

Permalink
Test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mrruby committed Jan 24, 2024
1 parent c6d35c5 commit 3b5701d
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
- release

jobs:
createDraftRelease:
create-draft-release:
needs: publish
runs-on: ubuntu-latest
steps:
Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/test-draft-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: 'test-draft-release'
on:
push:
branches:
- feat/gh-action-enhancement

jobs:
create-draft-release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '18'
- name: Get version
id: packagejson
run: |
echo "::set-output name=version::$(node -p "require('./package.json').version")"
- name: Create Draft Release
uses: ncipollo/release-action@v1
with:
tag: v${{ steps.packagejson.outputs.version }}
name: v${{ steps.packagejson.outputs.version }}
draft: true
prerelease: false

0 comments on commit 3b5701d

Please sign in to comment.