diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 568a2cf..ba40ca1 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -5,31 +5,8 @@ on: types: [published] jobs: - publish: - runs-on: ubuntu-latest - name: Publish to npm - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 - with: - node-version: 16 - registry-url: 'https://registry.npmjs.org/' - # Setup .npmrc file to publish to GitHub Packages - - name: Set NPM Variables - run: echo "$PACKAGES_NPMRC" > .npmrc - env: - PACKAGES_NPMRC: ${{ secrets.PACKAGES_NPMRC }} - - name: Install - run: yarn - - name: Build - run: yarn build - - - uses: actions/setup-node@v1 - with: - node-version: 16 - registry-url: 'https://npm.pkg.github.com' - scope: '@platformbuilders' - # Publish to GitHub Packages - - run: npm publish - env: - NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + call-workflow: + uses: platformbuilders/actions-workflows/.github/workflows/publish-lib.yml@main + secrets: + GITHUB_PACKAGES_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/package.json b/package.json index 5173b98..de25d60 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@platformbuilders/react-native-toast", - "version": "1.2.2", + "version": "1.3.0", "description": "", "author": "Platform Builders ", "repository": { @@ -55,4 +55,4 @@ "styled-components": "^5.3.11", "typescript": "^5.1.3" } -} +} \ No newline at end of file