AUTOMATION: Generated new typescript files #24
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 typescript types' | |
on: | |
workflow_dispatch: | |
inputs: { } | |
push: | |
branches: | |
- master | |
paths: | |
- 'typescript/**' | |
- '!typescript/package.json' | |
env: | |
CI_GITHUB_TOKEN: ${{ secrets.CI_GITHUB_TOKEN }} | |
KNOWIT_EMAIL: ${{ secrets.KNOWIT_EMAIL }} | |
jobs: | |
generate_typescript: | |
name: Publish typescript types | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.CI_GITHUB_TOKEN }} | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '18.12' | |
- name: Setup git | |
run: | | |
git config user.email "$KNOWIT_EMAIL" | |
git config user.name "github-actions" | |
- name: Publish typescript types | |
run: | | |
cd typescript/ | |
yarn | |
yarn build | |
yarn publish --non-interactive --access public --patch | |
git push | |
git push --tags | |
env: | |
NPM_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }} |