WIP
Some checks failed
Build homebridge-hue-chase / Version (push) Successful in 8s
Build homebridge-hue-chase / Build (push) Successful in 13s
continuous-integration/drone/push Build is passing
Build homebridge-hue-chase / Publish Latest (push) Failing after 8s
Build homebridge-hue-chase / Deploy (push) Has been skipped
Some checks failed
Build homebridge-hue-chase / Version (push) Successful in 8s
Build homebridge-hue-chase / Build (push) Successful in 13s
continuous-integration/drone/push Build is passing
Build homebridge-hue-chase / Publish Latest (push) Failing after 8s
Build homebridge-hue-chase / Deploy (push) Has been skipped
This commit is contained in:
parent
a9ec8f8403
commit
ddd26aa90a
@ -21,17 +21,18 @@ jobs:
|
|||||||
name: Version
|
name: Version
|
||||||
outputs:
|
outputs:
|
||||||
version: ${{ steps.get_version.outputs.version }}
|
version: ${{ steps.get_version.outputs.version }}
|
||||||
commit: ${{ steps.get_commit.outputs.commit }}
|
commit: ${{ steps.get_version.outputs.commit }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 18
|
node-version: 18
|
||||||
- id: get_version
|
- id: get_version
|
||||||
run: echo version=$(node -p "require('./package.json').version") >> "$GITHUB_OUTPUT"
|
run: |
|
||||||
- id: get_commit
|
export version=`node -p "require('./package.json').version"`
|
||||||
run: echo "commit=$(echo $DRONE_COMMIT | cut -c1-5)" >> "$GITHUB_OUTPUT"
|
export commit=`echo $GITHUB_SHA | cut -c1-5`
|
||||||
|
echo "version=$version" >> "$GITHUB_OUTPUT"
|
||||||
|
echo "commit=$commit" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
publish_tagged:
|
publish_tagged:
|
||||||
name: Publish Latest
|
name: Publish Latest
|
||||||
@ -46,12 +47,13 @@ jobs:
|
|||||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
COMMIT: ${{ needs.version.outputs.commit }}
|
COMMIT: ${{ needs.version.outputs.commit }}
|
||||||
run: |
|
run: |
|
||||||
npm version prerelease --preid=$COMMIT --git-tag-version=false --allow-same-version=true
|
npm version prerelease --preid="$COMMIT" --git-tag-version=false --allow-same-version=true
|
||||||
npm config set -- '//gitea.watsonlabs.net/api/packages/watsonb8/npm/:_authToken' "$NPM_TOKEN"
|
npm config set -- '//gitea.watsonlabs.net/api/packages/watsonb8/npm/:_authToken' "$NPM_TOKEN"
|
||||||
npm publish
|
npm publish
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
runs-on: internal
|
runs-on: internal
|
||||||
|
name: Deploy
|
||||||
needs: publish_tagged
|
needs: publish_tagged
|
||||||
steps:
|
steps:
|
||||||
- name: Set up SSH key
|
- name: Set up SSH key
|
||||||
|
Loading…
Reference in New Issue
Block a user