Fixed yaml #2
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: Build and publish to NPM | ||
on: | ||
push: | ||
tags: ['v*'] | ||
jobs: | ||
build-and-publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
- name: Install development dependencies | ||
run: npm install | ||
- name: Build bundle | ||
run: npm run build | ||
- name: Build types | ||
- run: npm run types | ||
- name: Publish to NPM | ||
env: | ||
NPM_TOKEN: ${{ secrets.NPM_PUBLISH }} | ||
run: npm publish --tag latest |