This repository has been archived by the owner on Jul 3, 2024. It is now read-only.
Update maintenance status in readme (#37) #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |