Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy_github
name: Publish to npm

on:
release:
Expand All @@ -9,7 +9,6 @@ jobs:
runs-on: aws-runner-set
permissions:
contents: read
packages: write

steps:
- name: Checkout
Expand All @@ -19,7 +18,7 @@ jobs:
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
registry-url: https://npm.pkg.github.com
registry-url: https://registry.npmjs.org

- name: Install dependencies
run: npm ci
Expand Down Expand Up @@ -47,7 +46,7 @@ jobs:
echo "dist_tag=latest" >> "$GITHUB_OUTPUT"
fi

- name: Publish to GitHub Packages NPM
run: npm publish --registry=https://npm.pkg.github.com --tag ${{ steps.validate.outputs.dist_tag }}
- name: Publish to npm
run: npm publish --tag ${{ steps.validate.outputs.dist_tag }}
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@conekta/conekta-elements-react-native",
"version": "0.0.1-beta.19",
"name": "conekta-elements-react-native",
Comment thread
fcarrero marked this conversation as resolved.
"version": "0.0.1-beta.20",
Comment thread
fcarrero marked this conversation as resolved.
"description": "React Native wrapper for Conekta Elements Compose UI",
"main": "src/index.ts",
"types": "src/index.ts",
Expand Down Expand Up @@ -29,7 +29,8 @@
"url": "https://github.com/conekta/conekta-elements-react-native.git"
},
"publishConfig": {
"registry": "https://npm.pkg.github.com"
"registry": "https://registry.npmjs.org",
"access": "public"
Comment thread
fcarrero marked this conversation as resolved.
},
"scripts": {
"postinstall": "node scripts/download-xcframework.js",
Expand Down