Skip to content

Commit

Permalink
feat: push github actions to publish package
Browse files Browse the repository at this point in the history
  • Loading branch information
rori4 committed Jan 16, 2024
1 parent 8481f5b commit 0b469ce
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Publish CI

on:
push:
branches: [master]

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "18.x"
registry-url: "https://npm.pkg.github.com"
scope: "@euler-xyz"
- run: npm ci
- run: npm run build --if-present
- run: |
git config user.name github-actions
git config user.email [email protected]
npm version patch
git push
git push --tags
- run: npm publish --access restricted
env:
# NOTE: using the built-in GITHUB token here because we're publishing to THIS repository's packages.
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 0b469ce

Please sign in to comment.