Skip to content

Commit

Permalink
chore: publish to npm automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
BOCOVO committed Dec 30, 2023
1 parent 151580f commit e4f8729
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Publish to npm

on:
push:
branches:
- "ci/use-github-to-publish"

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Get next version
id: get_next_version
uses: thenativeweb/get-next-version@main

- uses: actions/setup-node@v3
with:
node-version: "20.x"
registry-url: "https://registry.npmjs.org"
- run: |
yarn
yarn build
yarn config set version-git-tag false
npm pack
echo ${{ steps.get_next_version.outputs.version }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit e4f8729

Please sign in to comment.