Skip to content

Commit

Permalink
ci(release): change working directory and package path
Browse files Browse the repository at this point in the history
  • Loading branch information
thelindat committed Feb 18, 2024
1 parent cef4cb0 commit 67cfbbc
Showing 1 changed file with 14 additions and 15 deletions.
29 changes: 14 additions & 15 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,28 +53,14 @@ jobs:
cp -r ./{imports,lib,locales,common/data,sql,dist} ./temp/ox_core
cd ./temp && zip -r ../ox_core.zip ./ox_core
- name: Create Release
uses: 'marvinpinto/[email protected]'
id: auto_release
with:
repo_token: '${{ secrets.GITHUB_TOKEN }}'
title: '${{ env.RELEASE_VERSION }}'
prerelease: true
files: ox_core.zip

env:
CI: false
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Bump package version
run: pnpm version ${{ github.ref_name }}
working-directory: package

- name: Publish npm package
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
package: './package/package.json'
package: './package.json'
access: 'public'

- name: Update repository
Expand All @@ -84,3 +70,16 @@ jobs:
git add .
git commit -am '${{ github.ref_name }}'
git push
- name: Create Release
uses: 'marvinpinto/[email protected]'
id: auto_release
with:
repo_token: '${{ secrets.GITHUB_TOKEN }}'
title: '${{ env.RELEASE_VERSION }}'
prerelease: true
files: ox_core.zip

env:
CI: false
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 67cfbbc

Please sign in to comment.