Skip to content

chore: update package version manually due to failed workflow (#237) #99

chore: update package version manually due to failed workflow (#237)

chore: update package version manually due to failed workflow (#237) #99

name: build-test-publish-on-push
on:
workflow_dispatch:
push:
branches:
- 'main'
- 'next'
jobs:
build-test-publish:
env:
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
GH_TOKEN: ${{secrets.GH_TOKEN}}
GH_USER: ${{secrets.GH_USER}}
GH_EMAIL: ${{secrets.GH_EMAIL}}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GH_TOKEN }}
- uses: pnpm/action-setup@v2
with:
version: 8
- run: pnpm add -g pnpm
- name: 'Setup Node.js with pnpm cache'
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'pnpm'
- run: pnpm install
- run: pnpm run -r build
- run: pnpm run test
- name: 'Setup git coordinates'
run: |
git config user.name $GH_USER
git config user.email $GH_EMAIL
- name: 'Setup npm registry'
run: |
echo "registry=https://registry.npmjs.org" > .npmrc
echo "@veramo-community:registry=https://registry.npmjs.org" >> .npmrc
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> .npmrc
npm whoami
- name: 'Publish @latest when on main'
if: github.ref == 'refs/heads/main'
run: pnpm publish:latest
- name: 'Publish @next when on next'
if: github.ref == 'refs/heads/next'
run: pnpm publish:next
release-electron:
needs: build-test-publish
env:
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
GH_TOKEN: ${{secrets.GH_TOKEN}}
GH_USER: ${{secrets.GITHUB_USER}}
GH_EMAIL: ${{secrets.GITHUB_EMAIL}}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GH_TOKEN }}
ref: ${{ github.ref }}
- uses: pnpm/action-setup@v2
with:
version: 8
- name: 'Setup Node.js with pnpm cache'
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'pnpm'
- run: pnpm install
- run: pnpm run -r --filter "agent-explore^..." build:js # only the dependencies of agent-explore
- name: Build/release Electron app
uses: paneron/[email protected]
with:
github_token: ${{ secrets.GH_TOKEN }}
# If the commit is tagged with a version (e.g. "v1.0.0"),
# release the app after building
release: ${{ startsWith(github.ref, 'refs/tags/v') }}
package_root: "./packages/agent-explore"
build_script_name: build-electron
package_manager: pnpm