Skip to content

fix: release.yml

fix: release.yml #17

Workflow file for this run

name: release
on:
push:
branches:
- main
workflow_dispatch: {}
jobs:
build:
uses: ./.github/workflows/build.yml
secrets:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}

Check failure on line 11 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / release

Invalid workflow file

The workflow is not valid. .github/workflows/release.yml (Line: 11, Col: 26): Invalid secret, AWS_ACCESS_KEY_ID is not defined in the referenced workflow. .github/workflows/release.yml (Line: 12, Col: 30): Invalid secret, AWS_SECRET_ACCESS_KEY is not defined in the referenced workflow.
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
release:
needs: [build]
concurrency: release
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
env:
CI: "true"
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: ./.github/actions/build
- name: Set git identity
run: |-
git config --global user.name "github-actions"
git config --global user.email "[email protected]"
- run: echo //registry.npmjs.org/:_authToken=${NPM_TOKEN} > ~/.npmrc
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: bump versions
run: |-
pnpm standard-version
git push
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Publish packages
run: pnpm -r publish
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}