Skip to content

Commit

Permalink
add publish
Browse files Browse the repository at this point in the history
  • Loading branch information
johnb8005 committed Nov 1, 2024
1 parent 5e6f419 commit ed28bc5
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Publish

on:
push:
tags:
- v*

jobs:
test:
if: contains(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 20
- run: yarn
- run: yarn build
- name: Publish package
run: |
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_AUTH_TOKEN }}" > ~/.npmrc
yarn publish --access public
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Version Utils

[![Build and Test Package](https://github.com/nexys-system/version-utils/actions/workflows/test.yml/badge.svg)](https://github.com/nexys-system/version-utils/actions/workflows/test.yml)

0 comments on commit ed28bc5

Please sign in to comment.