зеркало из https://github.com/docker/node-sdk.git
Automatically publish tagged packages (on tags v*)
Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com>
This commit is contained in:
Родитель
64bb1939bd
Коммит
998b87b234
|
@ -0,0 +1,20 @@
|
|||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v*'
|
||||
|
||||
jobs:
|
||||
publish-npm:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Set env
|
||||
run: echo ::set-env name=RELEASE_VERSION::$(echo ${GITHUB_REF:11})
|
||||
- uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: 12
|
||||
registry-url: https://registry.npmjs.org/
|
||||
- run: ./publish ${RELEASE_VERSION}
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
set -e
|
||||
|
||||
yarn install
|
||||
yarn build
|
||||
yarn run copy
|
||||
cd src
|
||||
|
|
Загрузка…
Ссылка в новой задаче