Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ jobs:
run: shellcheck scripts/*.sh

build-and-test:
if: false
needs: shellcheck
strategy:
fail-fast: false
Expand All @@ -58,3 +59,30 @@ jobs:
- run: npm run build
- run: npm test
- run: npm run test:e2e

npm-publish:
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version-file: '.nvmrc'
registry-url: 'https://registry.npmjs.org'

# Clean build for npm publishing
- run: npm ci
- run: npm run build

# Dry run NPM publish
- name: Dry run NPM publish
run: npm publish --tag beta --provenance --access public --dry-run
env:
NODE_AUTH_TOKEN: ${{ secrets.HD_CLI_NPM_TOKEN }}

# NPM Release
- name: Create NPM release
run: npm publish --tag beta --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.HD_CLI_NPM_TOKEN }}