Skip to content

Commit

Permalink
[WIP] clean up github workflows for cache correctness
Browse files Browse the repository at this point in the history
  • Loading branch information
etrepum committed May 5, 2024
1 parent 72347ca commit b90edba
Show file tree
Hide file tree
Showing 6 changed files with 59 additions and 343 deletions.
10 changes: 0 additions & 10 deletions .github/workflows/devtools-extension-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,7 @@ jobs:
node-version: 20.x
cache: 'npm'

- uses: actions/cache@v4
id: devtools-cache
with:
path: |
node_modules
packages/lexical-devtools/.wxt
~/.cache/ms-playwright
key: ${{ runner.os }}-${{ runner.arch }}-v${{ secrets.CACHE_VERSION }}-${{ hashFiles('package-lock.json') }}

- name: Install dependencies
if: steps.devtools-cache.outputs.cache-hit != 'true'
run: npm ci

- name: Zip & submit to stores
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/nightly-release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Nightly Release Branch
on:
schedule:
# remove the [] when this is turned on
schedule: []
# Run daily at 2:30am UTC
# - cron: '30 2 * * 1-5'
jobs:
Expand All @@ -16,10 +17,11 @@ jobs:
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v4
with:
node-version: 20.x
registry-url: 'https://registry.npmjs.org'
- run: |
git config user.name "Lexical GitHub Actions Bot"
git config user.email "<>"
- run: npm install
- run: npm ci
- run: npm run increment-version -- --i prerelease
- run: git push -u [email protected]:facebook/lexical.git --follow-tags
3 changes: 2 additions & 1 deletion .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ jobs:
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v4
with:
node-version: 20.x
registry-url: 'https://registry.npmjs.org'
- run: npm install
- run: npm ci
- run: npm run prepare-release
- run: node ./scripts/npm/release.js --non-interactive --dry-run=${{ secrets.RELEASE_DRY_RUN }} --channel='latest'
env:
Expand Down
Loading

0 comments on commit b90edba

Please sign in to comment.