Skip to content

try some shit

try some shit #16

Workflow file for this run

name: Release
on:
push:
branches:
- main
permissions:
id-token: write
contents: read
jobs:
release:
if: ${{ github.repository_owner == 'danstepanov' }}
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
version:
latest
## Unfortuneately, bun doesn't support publishing to NPM registry yet
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- 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
- name: Build create-expo-stack
run: bun run build:cli
- name: Create Release Pull Request
id: changeset
uses: changesets/[email protected]
with:
commit: "chore(release): version packages"
title: "chore(release): version packages"
publish: npx changeset publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_ENV: "production"