Create main.yml
Some checks failed
Create UPM branches and run NPM publish / update (push) Has been cancelled
Some checks failed
Create UPM branches and run NPM publish / update (push) Has been cancelled
This commit is contained in:
36
.github/workflows/main.yml
vendored
Normal file
36
.github/workflows/main.yml
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
name: Create UPM branches and run NPM publish
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- v*
|
||||
|
||||
jobs:
|
||||
update:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Tag name
|
||||
id: tag
|
||||
run: echo ::set-output name=name::${GITHUB_REF#refs/tags/v}
|
||||
|
||||
- name: Create UPM Branch
|
||||
uses: hecomi/create-upm-branch-action@main
|
||||
with:
|
||||
git-tag: ${{ steps.tag.outputs.name }}
|
||||
pkg-root-dir-path: Assets/uDesktopDuplication
|
||||
main-branch: master
|
||||
|
||||
- name: Setup node
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
registry-url: 'https://registry.npmjs.org'
|
||||
|
||||
- name: NPM publish
|
||||
run: npm publish --access public
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
|
||||
Reference in New Issue
Block a user