Skip to content
Merged
Show file tree
Hide file tree
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
3 changes: 0 additions & 3 deletions .github/workflows/deploy-demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@ jobs:
- name: Build demo
run: npm run build:demo -- --configuration production --base-href /angular-render-scan/

- name: Configure GitHub Pages
uses: actions/configure-pages@v5

- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v3
with:
Expand Down
24 changes: 22 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ jobs:
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
working-directory: packages/angular-render-scan

- name: Sync CLI package version
run: npm version ${{ steps.package.outputs.version }} --no-git-tag-version --allow-same-version
working-directory: packages/cli

- name: Build
run: npm run build

Expand All @@ -51,16 +55,20 @@ jobs:
echo "angular-render-scan@${{ steps.package.outputs.version }} already exists on npm."
exit 1
fi
if npm view angular-render-scan-cli@${{ steps.package.outputs.version }} version >/dev/null 2>&1; then
echo "angular-render-scan-cli@${{ steps.package.outputs.version }} already exists on npm."
exit 1
fi

- name: Commit version bump
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add packages/angular-render-scan/package.json
git add packages/angular-render-scan/package.json packages/cli/package.json packages/cli/package-lock.json
git commit -m "chore(release): v${{ steps.package.outputs.version }} [skip release]"
git push origin HEAD:main

- name: Publish to NPM
- name: Publish package to NPM
run: |
if [ -n "${NODE_AUTH_TOKEN:-}" ]; then
npm whoami
Expand All @@ -72,6 +80,18 @@ jobs:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
working-directory: packages/angular-render-scan

- name: Publish CLI to NPM
run: |
if [ -n "${NODE_AUTH_TOKEN:-}" ]; then
npm whoami
else
echo "NPM_TOKEN is not set; npm publish will use trusted publishing/OIDC if it is configured for this package."
fi
npm publish --access public --provenance
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
working-directory: packages/cli

- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
Expand Down
Loading
Loading