Skip to content

1.2.10

1.2.10 #47

Workflow file for this run

name: Publish to NPM
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: "20.x"
registry-url: "https://registry.npmjs.org"
- name: Install dependencies and build 🔧
run: corepack enable && yarn set version 4.1.1 && yarn install --immutable && yarn run build
- name: Setup Testspace 🚀
uses: testspace-com/setup-testspace@v1
with:
domain: ${{ github.repository_owner }}
- name: Run tests ✅
run: yarn run test
- name: Push result to Testspace server
run: |
testspace ./reports/report.xml
if: always()
- name: Coveralls GitHub Action 📊
uses: coverallsapp/github-action@v2
- name: Publish package on NPM 📦
run: echo "npmAuthToken:" "\${NODE_AUTH_TOKEN}" >> ./.yarnrc.yml && yarn publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}