chore: update docs #11
This file contains hidden or 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 create-letta-app | |
| on: | |
| push: | |
| branches: [main] | |
| jobs: | |
| compile: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v3 | |
| - name: Set up node | |
| uses: actions/setup-node@v3 | |
| - name: Compile | |
| run: npm ci && npm run build | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v3 | |
| - name: Set up node | |
| uses: actions/setup-node@v3 | |
| - name: Test | |
| run: npm ci | |
| publish: | |
| needs: [compile, test] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v3 | |
| - name: Set up node | |
| uses: actions/setup-node@v3 | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Build | |
| run: npm run build | |
| - name: Publish to npm | |
| run: | | |
| npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN} | |
| if [[ ${GITHUB_REF} == *alpha* ]]; then | |
| npm publish --access public --tag alpha | |
| elif [[ ${GITHUB_REF} == *beta* ]]; then | |
| npm publish --access public --tag beta | |
| else | |
| npm publish --access public | |
| fi | |
| env: | |
| NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |