chore: add t9n files for language-translator/switcher #82
Workflow file for this run
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: Offer Publish after PR Closed | |
# only trigger on pull request closed events | |
on: | |
pull_request: | |
types: [ closed ] | |
jobs: | |
merge_job: | |
# this job will only run if the PR has been merged | |
if: github.event.pull_request.merged == true | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '16' | |
# get the latest version of the package from npm | |
- name: Get latest version | |
id: get_npm_version | |
run: echo "version=$(npm view @esri/instant-apps-components version)" >> $GITHUB_OUTPUT | |
# get the version number from the local package.json file | |
- name: Get local version | |
id: get_local_version | |
run: echo "localVersion=$(node -p 'require("./packages/instant-apps-components/package.json").version')" >> $GITHUB_OUTPUT | |
# get url to the PR | |
- name: Get PR URL | |
id: get_pr_url | |
run: echo "prUrl=$(jq -r .pull_request.url)" >> $GITHUB_OUTPUT | |
- uses: mshick/add-pr-comment@v2 | |
with: | |
message: | | |
# instant-apps-components | |
The following PR has been closed and merged. - [link to PR](${{ steps.get_pr_url.outputs.prUrl }}) | |
- NPM Version: **${{ steps.get_npm_version.outputs.version }}** | |
-[link](https://www.npmjs.com/package/@esri/instant-apps-components/v/${{ steps.get_npm_version.outputs.version }}) | |
- Repo Version: **${{ steps.get_local_version.outputs.localVersion }}** | |
-[link](https://github.com/Esri/instant-apps-components/blob/master/packages/instant-apps-components/package.json#L4) | |
**If you want to publish, your Repo version should be updated and differ from the current version on NPM** | |
### To publish instant-apps-components to NPM | |
If you would like to follow this PR up with a publish, please proceed to the [actions tab](https://github.com/Esri/instant-apps-components/actions/workflows/publish.yml) and manually run the publish. |