From ed28bc5d1051c5fb3dabcd8cfadc22272f736677 Mon Sep 17 00:00:00 2001 From: Johan Date: Fri, 1 Nov 2024 08:20:21 +0000 Subject: [PATCH] add publish --- .github/workflows/publish.yml | 22 ++++++++++++++++++++++ README.md | 3 +++ 2 files changed, 25 insertions(+) create mode 100644 .github/workflows/publish.yml create mode 100644 README.md diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..55f46b0 --- /dev/null +++ b/.github/workflows/publish.yml @@ -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 \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..930c96f --- /dev/null +++ b/README.md @@ -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) \ No newline at end of file