Skip to content

chore: Generate New Types (#771) #21

chore: Generate New Types (#771)

chore: Generate New Types (#771) #21

Workflow file for this run

name: Publish Types
# If changes are made to the types/src/** files
# Issue a new release to npm for the types package.
on:
workflow_dispatch:
push:
branches:
- main
paths:
- 'types/src/**'
jobs:
build:
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- uses: actions/checkout@master
with:
token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-node@v3
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
- name: Install npm dependencies
run: cd types && yarn install
- name: Configure Github Actions user
run: |
git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com"
git config --global user.name "${GITHUB_ACTOR}"
- name: Publish the package
run: cd types && yarn publish-types --ci
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.RELEASE_IT_GITHUB_TOKEN }}