Skip to content

feat(bot): stream function args #73

feat(bot): stream function args

feat(bot): stream function args #73

Workflow file for this run

name: Publish to NPM
on:
push:
branches:
- main
tags-ignore:
- v*
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 6
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18.x
cache: yarn
- run: yarn install --frozen-lockfile
- name: Lint
run: yarn run lint
- name: Test
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
run: yarn run test
# - name: Publish
# run: |
# git config --global user.email "actions@github.com"
# git config --global user.name "interbot"
# npm set //registry.npmjs.org/:_authToken=${{secrets.NPM_AUTH_TOKEN}}
# npm whoami
release:
name: Release
needs: test
runs-on: ubuntu-latest
permissions:
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
id-token: write # to enable use of OIDC for npm provenance
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "lts/*"
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
run: npm audit signatures
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
run: npx semantic-release