Update I18N to allow use of tag names, and add flag strings #450
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish Beta | |
on: | |
push: | |
branches: | |
- beta | |
jobs: | |
npm-publish: | |
name: npm-publish | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- id: check | |
uses: EndBug/version-check@v2.1.4 | |
with: | |
diff-search: true | |
- name: Set up Node | |
if: steps.check.outputs.changed == 'true' && contains(steps.check.outputs.version, 'beta') | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "18" | |
- name: Upgrade npm | |
if: steps.check.outputs.changed == 'true' && contains(steps.check.outputs.version, 'beta') | |
run: npm i -g npm@latest | |
- name: Install | |
if: steps.check.outputs.changed == 'true' && contains(steps.check.outputs.version, 'beta') | |
run: npm ci | |
- name: Setup publish token | |
if: steps.check.outputs.changed == 'true' && contains(steps.check.outputs.version, 'beta') | |
run: echo "//registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN}" > .npmrc | |
env: | |
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} | |
- name: Publish | |
if: steps.check.outputs.changed == 'true' && contains(steps.check.outputs.version, 'beta') | |
run: npm publish --tag beta |