Skip to content

chore: update @typesafe-i18n/exporter example dependencies (#710) #831

chore: update @typesafe-i18n/exporter example dependencies (#710)

chore: update @typesafe-i18n/exporter example dependencies (#710) #831

Workflow file for this run

name: run tests & bump version & publish to npm
on:
push:
branches:
- 'main'
jobs:
release:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'chore:') && !contains(github.event.head_commit.message, 'docs:')"
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8.6.7
- name: install node
uses: actions/setup-node@v2
with:
node-version: 18.16.1
cache: 'pnpm'
- run: pnpm install --no-save
- name: run linting
run: pnpm lint
- name: run tests
run: pnpm test
- name: bump version and create tag
uses: 'phips28/gh-action-bump-version@master'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
minor-wording: 'feat'
major-wording: 'major'
- name: build package
run: pnpm build
- name: create browser artifacts
uses: actions/upload-artifact@v2
with:
name: typesafe-i18n-browser
path: dist/
- name: publish to npm
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}