build: 🏗️ Import typebot-js source
This commit is contained in:
24
.github/workflows/publish-lib-to-npm.yml
vendored
Normal file
24
.github/workflows/publish-lib-to-npm.yml
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
name: Publish package to NPM
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v*.*.*'
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
runs-on: ubuntu-latest
|
||||
defaults:
|
||||
run:
|
||||
working-directory: ./packages/typebot-js
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: 12
|
||||
- run: yarn
|
||||
- run: yarn test
|
||||
- run: yarn build
|
||||
- uses: JS-DevTools/npm-publish@v1
|
||||
with:
|
||||
token: ${{ secrets.NPM_TOKEN }}
|
Reference in New Issue
Block a user