1
工作流之间对Github动作的依赖性
我有一个带有两个工作流程的monorepo: .github/workflows/test.yml name: test on: [push, pull_request] jobs: test-packages: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 - name: test packages run: | yarn install yarn test ... .github/workflows/deploy.yml deploy-packages: runs-on: ubuntu-latest needs: test-packages steps: - uses: actions/checkout@v1 - name: deploy packages run: | yarn deploy env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} ... …