tsup
configured to include types
#114
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release SDK Beta | |
on: | |
push: | |
tags: | |
- 'releases/sdk/**-beta*' | |
jobs: | |
create_sdk_beta_release: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18.x] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- run: npm install | |
- run: npx lerna run test --scope '@meeco/{sdk,sdk-demo}' | |
env: | |
CI: true | |
# Tag all versions with `-beta` and update all inter-dependant packages to use "beta" as the version | |
- run: npm run beta | |
- run: npx lerna run build --scope @meeco/sdk | |
- name: Publish NPM | |
run: | | |
npx lerna exec --scope @meeco/sdk -- npm config set //registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN | |
npx lerna exec --scope @meeco/sdk -- npm config set scope "@meeco" | |
npx lerna exec --scope @meeco/sdk -- npm publish --access public --tag beta | |
env: | |
CI: true | |
NODE_AUTH_TOKEN: ${{secrets.NPM_PUBLISH_TOKEN}} |