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