0.4.5 #24
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish new version | |
on: | |
push: | |
tags: | |
- 'v*' | |
jobs: | |
# TODO: !! Put back to work | |
# test: | |
# name: Test | |
# runs-on: ubuntu-latest | |
# steps: | |
# - uses: actions/checkout@v2 | |
# - uses: actions/setup-node@v1 | |
# with: | |
# node-version: 17 | |
# - run: npm ci | |
# - run: npm test | |
# TODO: There is some problem with this workflow, it does not work but it is not needed for now | |
# > release: | |
# > name: Create Release | |
# > needs: test | |
# > runs-on: ubuntu-latest | |
# > steps: | |
# > - name: Checkout code | |
# > uses: actions/checkout@v2 | |
# > - name: Create Release | |
# > id: create_release | |
# > uses: actions/create-release@v1 | |
# > env: | |
# > # This token is provided by Actions, you do not need to create your own token | |
# > GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# > with: | |
# > tag_name: ${{ github.ref }} | |
# > release_name: Release ${{ github.ref }} | |
# > body: | | |
# > Release ${{ github.ref }} | |
# > draft: false | |
# > prerelease: false | |
publish-npm: | |
name: Publish on NPM package registry | |
# !! needs: test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: 18 | |
registry-url: https://registry.npmjs.org/ | |
- run: npm ci | |
- run: npm run build | |
- run: npm publish --access public | |
env: | |
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} | |
# TODO: | |
# > publish-github: | |
# > name: Publish on GitHub package registry | |
# > needs: release | |
# > runs-on: ubuntu-latest | |
# > steps: | |
# > - uses: actions/checkout@v2 | |
# > - uses: actions/setup-node@v1 | |
# > with: | |
# > node-version: 17 | |
# > registry-url: https://npm.pkg.github.com/ | |
# > # Note: This is an awful solution to publish this package as "foo" on NPM and "@hejny/foo" on GitHub | |
# > - run: "sed -i -e 's/\\\"name\\\"\\: \\\"/\\\"name\\\": \\\"\\@hejny\\//g' ./package.json" | |
# > - run: npm ci | |
# > - run: npm run build | |
# > - run: npm publish | |
# > env: | |
# > NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} |