Skip to content
This repository has been archived by the owner on Jul 3, 2024. It is now read-only.

refactor!: update typescript and convert to ESM package: Major (#35) #6

refactor!: update typescript and convert to ESM package: Major (#35)

refactor!: update typescript and convert to ESM package: Major (#35) #6

Workflow file for this run

name: Publish
on:
push:
branches:
- main
jobs:
publish:
name: Publish
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node-version: [18.x]
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install
run: yarn install --frozen-lockfile --non-interactive
- name: Build
run: yarn run build
- name: Add npm token
run: echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}' > .npmrc
- name: Publish
if: ${{ github.ref == 'refs/heads/main' }}
run: yarn run semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}