mirror of
https://github.com/Choices-js/Choices.git
synced 2024-05-27 11:02:29 +02:00
Ignore branches that are not master
This commit is contained in:
parent
4c6acb5de2
commit
acceea524d
22
.github/workflows/npmpublish.yml
vendored
22
.github/workflows/npmpublish.yml
vendored
|
@ -2,8 +2,8 @@ name: Publish Package
|
|||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
branches-ignore:
|
||||
- '!master'
|
||||
tags:
|
||||
- v*
|
||||
|
||||
|
@ -64,20 +64,4 @@ jobs:
|
|||
HUSKY_SKIP_INSTALL: true
|
||||
- run: npm publish
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
|
||||
|
||||
publish-github:
|
||||
needs: publish-npm
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
with:
|
||||
fetch-depth: 1
|
||||
- run: echo ${{ github.sha }} > RELEASE.txt
|
||||
- run: cat RELEASE.txt
|
||||
- uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
files: RELEASE.txt
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
|
Loading…
Reference in a new issue