Skip to content
Merged
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
34 changes: 29 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,28 @@ jobs:
- name: Install dependencies
run: npm ci

- name: Compile TypeScript Files
run: tsc

- name: Run tests
run: make test-mocked
- name: Build package
run: npm run build

- name: Verify package contents
run: |
echo "Verifying package structure..."
ls -la src/dots/
echo "Checking for main entry point..."
test -f src/dots/digitalOceanClient.ts || (echo "Main entry point not found" && exit 1)
echo "Package verification complete"

- name: Create package
run: |
echo "Creating npm package..."
npm pack
ls -la *.tgz

- name: Upload package artifact
uses: actions/upload-artifact@v4
with:
name: npm-package
path: "*.tgz"

- name: Publish to npm
run: npm publish --access public
Expand All @@ -40,12 +57,19 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Download package artifact
uses: actions/download-artifact@v4
with:
name: npm-package
path: ./

- name: Set TAG
run: echo "TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV

- name: Create release
run: |
gh release create ${{ env.TAG }} \
*.tgz \
--title "${{ env.TAG }}" \
--generate-notes \
--draft
Expand Down
Loading