chore(deps): update actions/checkout digest to 11bd719 (#598) #610
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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
- uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4 | |
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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
- uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4 | |
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 }} | |