Skip to content

Publish new version #35

Publish new version

Publish new version #35

Workflow file for this run

name: Publish new version
on:
push:
tags:
- v*
jobs:
publish-npm:
name: Publish on NPM package registry
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 18
registry-url: https://registry.npmjs.org/
- name: Install dependencies
run: npm ci
- name: Build packages bundles
run: npx rollup --config rollup.config.js
- name: Publish @gptp/core
working-directory: ./packages/core
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
- name: Publish @gptp/execute-javascript
working-directory: ./packages/execute-javascript
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
- name: Publish @gptp/openai
working-directory: ./packages/openai
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
- name: Publish @gptp/remote-client
working-directory: ./packages/remote-client
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
- name: Publish @gptp/remote-server
working-directory: ./packages/remote-server
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
- name: Publish @gptp/utils
working-directory: ./packages/utils
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
- name: Publish @gptp/wizzard
working-directory: ./packages/wizzard
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}