technologiestiftung / berlin-open-source-portal

Showcase of Open Source Software that is built, maintained and/or funded by Berlin state governmental agencies
https://berlinopensource.de
Mozilla Public License 2.0
28 stars 8 forks source link

Deprecated commands in actions set-output #258

Closed ff6347 closed 1 year ago

ff6347 commented 1 year ago

The GitHub actions commands set-output and set-state will be deprecated see this blog post --> https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/

This repo is using the set-output

A fix for setting the node version could be the following action step:

jobs:
  build:
    runs-on: ubuntu-latest
    steps: 
      - name: Set nvmrc version as .env variable
        run: echo "NODE_VERSION=$(cat .nvmrc)" >> $GITHUB_ENV
            - name: Use Node.js (.nvmrc)
              uses: actions/setup-node@v3
              with:
                node-version: "${{ env.NODE_VERSION }}"