Skip to content

v1.0.21

v1.0.21 #35

Workflow file for this run

name: Publish package to npmjs
on:
release:
types: [published]
jobs:
publish_npm:
runs-on: ubuntu-latest
timeout-minutes: 1
permissions:
contents: read
id-token: write
packages: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Create .npmrc file
run: |
echo "@internxt:registry=https://npm.pkg.github.com/" > .npmrc
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" >> .npmrc
- name: Publish package to github
run: npm publish --scope=@internxt --access public
- name: Create .npmrc file
run: |
echo "registry=https://registry.npmjs.org/" > .npmrc
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> .npmrc
- name: Publish package to npm
run: npm publish --scope=@internxt --access public