Skip to content

Merge pull request #2 from andersundsehr/bugfix/axe-is-already-running #22

Merge pull request #2 from andersundsehr/bugfix/axe-is-already-running

Merge pull request #2 from andersundsehr/bugfix/axe-is-already-running #22

Workflow file for this run

name: Tasks
on:
push:
pull_request:
jobs:
build:
name: npm build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22.x'
cache: 'npm'
- run: npm ci
- run: npm run build
npm-publish:
name: npm publish
runs-on: ubuntu-latest
needs: [ build ]
if: startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22.x'
cache: 'npm'
registry-url: 'https://registry.npmjs.org'
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
- run: npm ci
- run: npm --no-git-tag-version version ${{ steps.get_version.outputs.VERSION }}
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}