Skip to content

Commit

Permalink
Update node.js.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
volatile-static authored Oct 14, 2023
1 parent 0bc6670 commit 1c963d0
Showing 1 changed file with 23 additions and 3 deletions.
26 changes: 23 additions & 3 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs

name: Node.js CI
name: Plug-in CI

on:
push:
Expand All @@ -22,11 +22,31 @@ jobs:
- run: npm install
- run: npm run build-dev-all
- run: zip -r chartero-dev ./build/addon/


- name: Get latest release
id: latest_release
uses: actions/github-script@v4
with:
script: |
const { data } = await github.repos.getLatestRelease({
owner: context.repo.owner,
repo: context.repo.repo
});
console.log(data.tag_name);
console.log(data.target_commitish);
return {
tagName: data.tag_name,
targetCommitish: data.target_commitish
}
- name: Release
uses: softprops/action-gh-release@v1
with:
name: ⚗️ Development Build
tag_name: dev
prerelease: true
draft: true
generate_release_notes: true
append_body: |
# For testing purposes only, do NOT use in production!
files: chartero-dev.zip
target_commitish: ${{ steps.latest_release.outputs.targetCommitish }}

0 comments on commit 1c963d0

Please sign in to comment.