Skip to content

Commit

Permalink
[ci] publish reinstalls
Browse files Browse the repository at this point in the history
  • Loading branch information
QarthO committed Aug 9, 2024
1 parent 3d912ff commit 97287c6
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,33 @@ on:

jobs:
build:
name: Build qHotkeys
runs-on: ubuntu-latest # Specifies that the job should run on the latest Ubuntu runner

steps:
- uses: actions/checkout@v4 # Checks out your repository under $GITHUB_WORKSPACE

# Fetches the project from the repo saves it to the $GITHUB_WORKSPACE
- name: Fetch Project
uses: actions/checkout@v4

# Installs Bun
- name: Set up Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: 'latest'

- name: Install dependencies with Bun
# Installs dependencies
- name: Install dependencies
run: bun install

# Builds the project
- name: Build app before publishing
run: |
bun run build
# Uploads the build
- name: Upload build artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: build-artifacts
path: dist
Expand All @@ -37,15 +45,11 @@ jobs:
needs: build
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v3
name: Download build artifacts
with:
name: build-artifacts
path: dist

This comment has been minimized.

Copy link
@meadowsjared

meadowsjared Aug 9, 2024

Contributor

@QarthO When you removed this "Download build artifacts" (40-44) step from your ci.yaml file, it broke your build, because it no longer includes the files from the build step. 😞

- uses: actions/setup-node@v4
with:
node-version: '20'
registry-url: 'https://registry.npmjs.org'
- run: npm install
- name: Publish to npm
id: publish # Assign an ID to this step
run: npm publish --access public
Expand Down

0 comments on commit 97287c6

Please sign in to comment.