fix: add env vars to github action. #131
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 Pluto encrypted | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
with: | |
submodules: 'true' | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "lts/*" | |
registry-url: 'https://registry.npmjs.org/' | |
- uses: crazy-max/ghaction-import-gpg@v5 | |
id: import_gpg | |
with: | |
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} | |
passphrase: ${{ secrets.GPG_PASSPHRASE }} | |
git_user_signingkey: true | |
git_commit_gpgsign: true | |
- name: Release | |
env: | |
GH_TOKEN: ${{ secrets.PLUTO_GITHUB }} | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
run: | | |
npm ci | |
npm run release | |
npm run docs | |
- uses: stefanzweifel/git-auto-commit-action@v5 | |
env: | |
GH_TOKEN: ${{ secrets.PLUTO_GITHUB }} | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
with: | |
push_options: '--force' | |
commit_message: "chore(docs): Rebuild docs [skip ci]" | |
commit_author: Javier Ribó <elribonazo@gmail.com> | |
commit_user_name: Javier Ribó | |
commit_user_email: elribonazo@gmail.com | |