Fixed build
This commit is contained in:
parent
1d9ad2ef63
commit
1eff60e7dd
40
.github/workflows/build.yaml
vendored
40
.github/workflows/build.yaml
vendored
@ -37,11 +37,15 @@ jobs:
|
|||||||
key: node_modules
|
key: node_modules
|
||||||
pattern: node_modules
|
pattern: node_modules
|
||||||
|
|
||||||
- name: Cache Artifacts
|
- name: Upload to Registry
|
||||||
uses: ztimson/actions/cache@develop
|
uses: ztimson/actions/npm/publish@develop
|
||||||
|
|
||||||
|
- name: Upload to NPM
|
||||||
|
uses: ztimson/actions/npm/publish@develop
|
||||||
with:
|
with:
|
||||||
key: dist
|
owner: ztimson
|
||||||
pattern: dist
|
registry: https://registry.npmjs.org/
|
||||||
|
token: ${{secrets.NPM_TOKEN}}
|
||||||
tag:
|
tag:
|
||||||
name: Tag Version
|
name: Tag Version
|
||||||
needs: build
|
needs: build
|
||||||
@ -59,31 +63,3 @@ jobs:
|
|||||||
uses: ztimson/actions/tag@develop
|
uses: ztimson/actions/tag@develop
|
||||||
with:
|
with:
|
||||||
tag: ${{env.VERSION}}
|
tag: ${{env.VERSION}}
|
||||||
|
|
||||||
publish:
|
|
||||||
name: Publish
|
|
||||||
needs: build
|
|
||||||
if: ${{github.ref_name}} == 'release'
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
container:
|
|
||||||
image: node
|
|
||||||
volumes:
|
|
||||||
- '/mnt/swarm/gitea/runner/cache:/cache'
|
|
||||||
steps:
|
|
||||||
- name: Clone Repository
|
|
||||||
uses: ztimson/actions/clone@develop
|
|
||||||
|
|
||||||
- name: Restore Artifacts
|
|
||||||
uses: ztimson/actions/cache/restore@develop
|
|
||||||
with:
|
|
||||||
key: dist
|
|
||||||
|
|
||||||
- name: Upload to Registry
|
|
||||||
uses: ztimson/actions/npm/publish@develop
|
|
||||||
|
|
||||||
- name: Upload to NPM
|
|
||||||
uses: ztimson/actions/npm/publish@develop
|
|
||||||
with:
|
|
||||||
owner: ztimson
|
|
||||||
registry: https://registry.npmjs.org/
|
|
||||||
token: ${{secrets.NPM_TOKEN}}
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@ztimson/utils",
|
"name": "@ztimson/utils",
|
||||||
"version": "0.11.1",
|
"version": "0.11.2",
|
||||||
"description": "Utility library",
|
"description": "Utility library",
|
||||||
"author": "Zak Timson",
|
"author": "Zak Timson",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
Loading…
Reference in New Issue
Block a user