Skip to content

Add MIT license

Add MIT license #111

name: Release experimental branch
on:
push:
branches:
- experimental
jobs:
release:
name: ${{ matrix.channel }}
runs-on: ubuntu-latest
environment: production
strategy:
max-parallel: 1
matrix:
channel:
- current
- beta
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: 20
# https://github.com/atlassian/changesets/issues/550#issuecomment-811245508
registry-url: https://registry.npmjs.org
- uses: oven-sh/setup-bun@v1
- run: bun install && bun run build
- name: Create Release Pull Request or Publish to npm
if: matrix.channel == 'current'
uses: changesets/action@master
with:
publish: npm run release
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Publish packages on npm with @beta tag
if: matrix.channel == 'beta'
run: |
npm run version-packages:beta
npm run release:beta
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}