Skip to content

Commit

Permalink
Fixed publish
Browse files Browse the repository at this point in the history
  • Loading branch information
rennokki committed Nov 15, 2024
1 parent d0bf426 commit ef52ef7
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:

jobs:
push:
permissions:
contents: write
id-token: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -42,6 +45,18 @@ jobs:
bun examples/oop.ts
- run: npm install

- name: Replace version in package.json
run: |
VERSION=${GITHUB_REF#refs/tags/}
sed -i "s/\"version\": \".*\"/\"version\": \"$VERSION\"/g" package.json
- run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Push version changes to GitHub
run: |
git add .
git commit -m "chore: update "
git push

0 comments on commit ef52ef7

Please sign in to comment.