From ff2e255b8c711d570422de1b6ec3c8d9fe2f3a44 Mon Sep 17 00:00:00 2001 From: marcelxsilva Date: Fri, 3 May 2024 15:21:47 -0300 Subject: [PATCH 1/2] feat: version toast --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 From 0a90d3d5067d13b4d2b393715671869d5c2534ed Mon Sep 17 00:00:00 2001 From: marcelxsilva Date: Mon, 6 May 2024 09:05:20 -0300 Subject: [PATCH 2/2] feat: update publish workflow --- .github/workflows/publish.yml | 33 +++++---------------------------- 1 file changed, 5 insertions(+), 28 deletions(-) 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 }}