mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-16 22:46:03 +01:00
ci(release): publish new npm package version on release
This commit is contained in:
11
.github/workflows/release.yml
vendored
11
.github/workflows/release.yml
vendored
@@ -36,6 +36,10 @@ jobs:
|
||||
- name: Install dependencies
|
||||
run: pnpm install
|
||||
working-directory: web
|
||||
|
||||
- name: Bump package version
|
||||
run: pnpm version ${{ github.ref_name }}
|
||||
working-directory: package
|
||||
|
||||
- name: Run build
|
||||
run: pnpm build
|
||||
@@ -83,3 +87,10 @@ jobs:
|
||||
env:
|
||||
CI: false
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Publish npm package
|
||||
uses: JS-DevTools/npm-publish@v1
|
||||
with:
|
||||
token: ${{ secrets.NPM_TOKEN }}
|
||||
package: './packages/package.json'
|
||||
access: 'public'
|
||||
Reference in New Issue
Block a user