Skip to content

Commit

Permalink
ci: replace GitHub markdown before publish to NPM
Browse files Browse the repository at this point in the history
  • Loading branch information
scriptcoded committed Nov 2, 2024
1 parent ccef477 commit add74c1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,26 @@ jobs:
id: release
with:
release-type: node

- uses: actions/checkout@v4
if: ${{ steps.release.outputs.release_created }}

- uses: actions/setup-node@v4
with:
node-version: 22
registry-url: 'https://registry.npmjs.org'
if: ${{ steps.release.outputs.release_created }}

- run: npm ci
if: ${{ steps.release.outputs.release_created }}

- run: npm run build
if: ${{ steps.release.outputs.release_created }}

- name: Replace GitHub-specific markdown
run: |
sed -i 's/\[!IMPORTANT\]/### Important 💡/g' README.md
- name: Publish to NPM
run: npm publish
env:
Expand Down

0 comments on commit add74c1

Please sign in to comment.