diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..0c017c0 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,26 @@ +name: Publish + +on: + release: + types: [published] + +jobs: + build: + name: Build and publish + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v4 + with: + node-version: 18.x + + - name: Install + run: yarn + + - name: Build + run: yarn build + + - name: Publish + uses: JS-DevTools/npm-publish@v3 + with: + token: ${{ secrets.CERN_SIS_NPM }}