symlink README, add shortlink for discord, update contributors, add h… #11
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 Beta | |
on: | |
push: | |
branches: | |
- beta | |
permissions: | |
id-token: write | |
jobs: | |
release-beta: | |
if: ${{ github.repository_owner == 'danstepanov' }} | |
name: Release Beta | |
runs-on: ubuntu-latest | |
outputs: | |
releaseId: ${{ steps.release-id.outputs.releaseId }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Setup Bun | |
uses: oven-sh/setup-bun@v1 | |
with: | |
version: latest | |
- name: Cache node_modules | |
id: cache-bun | |
uses: actions/cache@v3 | |
env: | |
cache-name: cache-node-modules | |
with: | |
path: ~/.bun/install/cache | |
key: ${{ runner.os }}-build-${{ env.cache-name }}\ | |
-${{ hashFiles('**/bun.lockb') }} | |
restore-keys: ${{ runner.os }}-build-${{ env.cache-name }}- | |
${{ runner.os }}-build- | |
${{ runner.os }}- | |
- name: Install dependencies | |
run: bun install --frozen-lockfile | |
- name: Build create-expo-stack | |
run: bun run build:cli | |
## The change made to package.json here is ephemeral, as it will only run in CI | |
- name: Bump beta version | |
run: bun run ./scripts/beta-release.ts | |
## Unfortunately, bun doesn't support publishing to NPM registry yet | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: latest | |
- name: Authenticate to npm and publish | |
env: | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
run: | | |
bun run build:cli | |
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc | |
cd ./cli | |
npm publish --provenance --access public --ignore-scripts --tag beta |