diff --git a/.github/workflows/08-secrets.yml b/.github/workflows/08-secrets.yml index f20939e..e9c2eef 100644 --- a/.github/workflows/08-secrets.yml +++ b/.github/workflows/08-secrets.yml @@ -29,10 +29,10 @@ jobs: - uses: actions/checkout@v2 # Runs a single command using the runners shell - - name: Run a one-line script + - name: Pass via Context run: echo "$Greeting, ${{ secrets.Name }}!" - - name: Run a one-line script + - name: Pass via Environment run: echo "$Greeting, $Name!" env: Name: ${{ secrets.Name }} diff --git a/.github/workflows/node.js.yml b/.github/workflows/09-node.js-matrix.yml similarity index 72% rename from .github/workflows/node.js.yml rename to .github/workflows/09-node.js-matrix.yml index deaf25d..7de771c 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/09-node.js-matrix.yml @@ -1,7 +1,7 @@ # This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node # For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions -name: Node.js CI +name: 09 Node.js Matrix on: workflow_dispatch: @@ -38,18 +38,3 @@ jobs: - run: npm ci - run: npm run build --if-present - run: npm test - - publish-npm: - needs: build-node - runs-on: ubuntu-latest - environment: npm - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 - with: - node-version: 16 - registry-url: https://registry.npmjs.org/ - - run: npm ci - - run: npm publish - env: - NODE_AUTH_TOKEN: ${{secrets.npm_token}}