From 3df23489bace2d8d0b583ce509d22ecb2601ba4a Mon Sep 17 00:00:00 2001 From: heineiuo Date: Fri, 24 Apr 2020 13:48:11 +0800 Subject: [PATCH] v1.2.1 --- .github/release.yml | 32 ++++++++++++++++++++++++++++++++ package.json | 4 ++-- 2 files changed, 34 insertions(+), 2 deletions(-) create mode 100644 .github/release.yml diff --git a/.github/release.yml b/.github/release.yml new file mode 100644 index 0000000..fc93f82 --- /dev/null +++ b/.github/release.yml @@ -0,0 +1,32 @@ +name: Release CI + +on: + release: + types: [published] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [12.x] + + steps: + - uses: actions/checkout@v1 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - name: yarn build + run: | + yarn + yarn build + env: + CI: true + - name: npm login & publish + run: | + echo '//registry.npmjs.org/:_authToken=${{secrets.NPM_TOKEN}}' > ~/.npmrc + npm publish + \ No newline at end of file diff --git a/package.json b/package.json index 53acbef..50618fb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-animated-linear-gradient", - "version": "1.2.0", + "version": "1.2.1", "description": "Animated linear gradient as background animation or other.", "main": "index.js", "scripts": { @@ -34,4 +34,4 @@ "prop-types": "^15.6.0", "rgb2hex": "^0.1.0" } -} +} \ No newline at end of file