Skip to content

Commit

Permalink
ci(release): install package deps
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeWasTakenn committed May 18, 2023
1 parent ca991bf commit 06e8f66
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Release
on:
push:
tags:
- "v*.*.*"
- 'v*.*.*'

jobs:
create-release:
Expand All @@ -27,16 +27,20 @@ jobs:
uses: actions/setup-node@v2
with:
node-version: 16.x
cache: "pnpm"
cache-dependency-path: "web/pnpm-lock.yaml"
cache: 'pnpm'
cache-dependency-path: 'web/pnpm-lock.yaml'

- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV

- name: Install dependencies
run: pnpm install
working-directory: web


- name: Install package dependencies
run: pnpm install
working-directory: package

- name: Bump package version
run: pnpm version ${{ github.ref_name }}
working-directory: package
Expand All @@ -59,7 +63,7 @@ jobs:
push: true
author_name: Manifest Bumper
author_email: 41898282+github-actions[bot]@users.noreply.github.com
message: "chore: bump manifest version to ${{ github.ref_name }}"
message: 'chore: bump manifest version to ${{ github.ref_name }}'

- name: Update tag ref
uses: EndBug/latest-tag@latest
Expand All @@ -76,10 +80,10 @@ jobs:
cd ./temp && zip -r ../ox_lib.zip ./ox_lib
- name: Create Release
uses: "marvinpinto/[email protected]"
uses: 'marvinpinto/[email protected]'
id: auto_release
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
repo_token: '${{ secrets.GITHUB_TOKEN }}'
title: ${{ env.RELEASE_VERSION }}
prerelease: false
files: ox_lib.zip
Expand All @@ -93,4 +97,4 @@ jobs:
with:
token: ${{ secrets.NPM_TOKEN }}
package: './package/package.json'
access: 'public'
access: 'public'

0 comments on commit 06e8f66

Please sign in to comment.