diff --git a/.github/workflows/firebase-hosting-merge.yml b/.github/workflows/firebase-hosting-merge.yml index d895b54..576953d 100644 --- a/.github/workflows/firebase-hosting-merge.yml +++ b/.github/workflows/firebase-hosting-merge.yml @@ -3,8 +3,6 @@ on: push: branches: - main -env: - NODE_VERSION: '16.5.0' jobs: build_and_deploy: name: Build and Deploy to Live @@ -14,10 +12,10 @@ jobs: url: https://bvarga.dev steps: - uses: actions/checkout@v2 - - name: Use Node.js ${{ env.NODE_VERSION }} + - name: Use Node.js uses: actions/setup-node@v2 with: - node-version: ${{ env.NODE_VERSION }} + node-version-file: '.node-version' - name: Cache node modules uses: actions/cache@v4 env: diff --git a/.github/workflows/firebase-hosting-pull-request.yml b/.github/workflows/firebase-hosting-pull-request.yml index c972744..c8ee72c 100644 --- a/.github/workflows/firebase-hosting-pull-request.yml +++ b/.github/workflows/firebase-hosting-pull-request.yml @@ -10,10 +10,10 @@ jobs: environment: staging steps: - uses: actions/checkout@v2 - - name: Use Node.js ${{ env.NODE_VERSION }} + - name: Use Node.js uses: actions/setup-node@v2 with: - node-version: ${{ env.NODE_VERSION }} + node-version-file: '.node-version' - name: Cache node modules uses: actions/cache@v4 env: diff --git a/.node-version b/.node-version new file mode 100644 index 0000000..fdb2eaa --- /dev/null +++ b/.node-version @@ -0,0 +1 @@ +22.11.0 \ No newline at end of file