Skip to content

Publish new Package #74

Publish new Package

Publish new Package #74

name: Publish new Package
# # workflow dispatch requires a maintainer to go to the Actions tab and manually trigger the workflow
on:
workflow_dispatch:
inputs:
publish:
description: "Flag to publish new package"
required: true
default: false
type: boolean
# # If we ever migrate this to not be manual, we HAVE to check that the commit
# # it is running against DOES NOT contain [skip-ci] in the commit message
jobs:
build_test_and_deploy:
name: Build, Test, and Deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
# - name: Set Github User Details
# run: |
# git config --global user.name "Alchemy Bot"
# git config --global user.email "[email protected]"
# - name: Set NPM Permissions
# env:
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
# run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc
- name: Set Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: "18.13"
cache: "yarn"
- name: Install dependencies
run: yarn
- name: Build
run: yarn build
- name: E2E tests
env:
API_URL: ${{ secrets.API_URL }}
API_KEY: ${{ secrets.API_KEY }}
TEAM_ID: ${{ secrets.TEAM_ID }}
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
run: yarn test:e2e
# # Lerna publish will, compute the new version, update files, run precommit hooks, tag, publish, and push change log
# - name: Publish using Lerna
# if: inputs.publish
# run: yarn lerna publish --no-private --yes --no-verify-access