chore(deps): update dependency eslint to v8.50.0 (#399) #414
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: release | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
release-external: | |
runs-on: ubuntu-latest | |
env: | |
GITHUB_TOKEN: placeholder | |
outputs: | |
released_version: ${{ steps.release.outputs.released_version }} | |
steps: | |
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3 | |
- uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3 | |
with: | |
node-version: 18 | |
- run: npm ci | |
- run: npm run build | |
- run: npm run check | |
- uses: crazy-max/ghaction-import-gpg@d6f3f49f3345e29369fe57596a3ca8f94c4d2ca7 # v5 | |
with: | |
gpg_private_key: ${{secrets.STEDI_ENGINEERING_PUBLIC_REPO_GPG_PRIVATE_KEY}} | |
passphrase: ${{secrets.STEDI_ENGINEERING_PUBLIC_REPO_GPG_PASSPHRASE}} | |
git_user_signingkey: true | |
git_commit_gpgsign: true | |
id: import_gpg | |
- run: 'echo "email: ${{ steps.import_gpg.outputs.email }}"' | |
- run: npm run release | |
id: release | |
env: | |
GIT_AUTHOR_NAME: ${{steps.import_gpg.outputs.name}} | |
GIT_COMMITTER_NAME: ${{steps.import_gpg.outputs.name}} | |
GIT_AUTHOR_EMAIL: ${{steps.import_gpg.outputs.email}} | |
GIT_COMMITTER_EMAIL: ${{steps.import_gpg.outputs.email}} | |
NPM_TOKEN: ${{secrets.NPM_TOKEN}} | |
- run: npm cache clear --force | |
release-internal: | |
needs: [release-external] | |
if: needs.release-external.outputs.released_version != '' | |
runs-on: ubuntu-latest | |
env: | |
GITHUB_TOKEN: placeholder | |
steps: | |
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3 | |
- uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3 | |
with: | |
node-version: 18 | |
- run: 'echo "released_version: ${{needs.release-external.outputs.released_version}}"' | |
- run: npm ci | |
- run: npm run build | |
- run: npm run check | |
- uses: crazy-max/ghaction-import-gpg@d6f3f49f3345e29369fe57596a3ca8f94c4d2ca7 # v5 | |
with: | |
gpg_private_key: ${{secrets.STEDI_ENGINEERING_PUBLIC_REPO_GPG_PRIVATE_KEY}} | |
passphrase: ${{secrets.STEDI_ENGINEERING_PUBLIC_REPO_GPG_PASSPHRASE}} | |
git_user_signingkey: true | |
git_commit_gpgsign: true | |
id: import_gpg | |
- run: npm version ${{needs.release-external.outputs.released_version}} --allow-same-version | |
env: | |
GIT_AUTHOR_NAME: ${{steps.import_gpg.outputs.name}} | |
GIT_COMMITTER_NAME: ${{steps.import_gpg.outputs.name}} | |
GIT_AUTHOR_EMAIL: ${{steps.import_gpg.outputs.email}} | |
GIT_COMMITTER_EMAIL: ${{steps.import_gpg.outputs.email}} | |
NPM_TOKEN: ${{secrets.NPM_TOKEN}} | |
- run: sed -i 's/registry.npmjs.org/npm.pkg.github.com\/Stedi/' package.json | |
- run: sed -i '/"access":\ "public"/d' package.json | |
- run: npm publish | |
env: | |
GITHUB_TOKEN: ${{ secrets.PRETTIER_PLUGIN_JSONATA_GITHUB_TOKEN }} | |