Skip to content

test what happens without checking if it already exists #4

test what happens without checking if it already exists

test what happens without checking if it already exists #4

Workflow file for this run

name: Publish country-config to npm
on:
push:
branches:
- main
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version-file: ".nvmrc"
registry-url: "https://registry.npmjs.org/"
- name: Install dependencies
run: yarn install
working-directory: packages/country-config
- name: Build
run: yarn build
working-directory: packages/country-config
- name: Authenticate to npm
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
working-directory: packages/country-config
- name: Publish to npm
run: npm publish --access public
working-directory: packages/country-config
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}