Skip to content

Automatically extend vitest with wrapito matchers (#49) #18

Automatically extend vitest with wrapito matchers (#49)

Automatically extend vitest with wrapito matchers (#49) #18

Workflow file for this run

# This workflow will run tests using node and then publish a package to NPM when a tag is pushed
name: Publish wrapito-vitest to npm
on:
push:
tags:
- 'v*.*.*'
jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm version --no-git-tag-version ${GITHUB_REF##*/}
- run: npm run publish-package
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
- name: Build Changelog
id: github_release
uses: mikepenz/release-changelog-builder-action@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body: ${{steps.github_release.outputs.changelog}}
draft: false
prerelease: false