forked from overextended/ox_lib
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ca991bf
commit 06e8f66
Showing
1 changed file
with
12 additions
and
8 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ name: Release | |
on: | ||
push: | ||
tags: | ||
- "v*.*.*" | ||
- 'v*.*.*' | ||
|
||
jobs: | ||
create-release: | ||
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -93,4 +97,4 @@ jobs: | |
with: | ||
token: ${{ secrets.NPM_TOKEN }} | ||
package: './package/package.json' | ||
access: 'public' | ||
access: 'public' |