@@ -10,20 +10,11 @@ jobs:
1010 runs-on : ubuntu-latest
1111 steps :
1212 - uses : actions/checkout@master
13- - name : Setup node 14
14- uses : actions/setup-node@v1
13+ - name : Setup node 18
14+ uses : actions/setup-node@v4
1515 with :
16- node-version : 14.x
17- - name : Get yarn cache directory path
18- id : yarn-cache-dir-path
19- run : echo "::set-output name=dir::$(yarn cache dir)"
20- - uses : actions/cache@v2
21- id : yarn-cache
22- with :
23- path : ${{ steps.yarn-cache-dir-path.outputs.dir }}
24- key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
25- restore-keys : |
26- ${{ runner.os }}-yarn-
16+ node-version : 18.x
17+ cache : " yarn"
2718 - name : Build & create dist/artifact
2819 run : |
2920 yarn install --frozen-lockfile
3829 AWS_S3_BUCKET : ${{ secrets.AWS_S3_BUCKET_DOWNLOADS }}
3930 AWS_ACCESS_KEY_ID : ${{ secrets.S3_DOWNLOADS_AWS_ACCESS_KEY_ID }}
4031 AWS_SECRET_ACCESS_KEY : ${{ secrets.S3_DOWNLOADS_AWS_SECRET_ACCESS_KEY }}
41- AWS_REGION : ' us-west-1' # optional: defaults to us-east-1
42- SOURCE_DIR : ' artifact' # optional: defaults to entire repository
32+ AWS_REGION : " us-west-1" # optional: defaults to us-east-1
33+ SOURCE_DIR : " artifact" # optional: defaults to entire repository
4334 DEST_DIR : ${{ secrets.S3_AWS_PRODUCTS_FOLDER }}/$BUILD_NAME/latest
4435 - name : Upload Tagged Version to S3
4536 uses : jakejarvis/s3-sync-action@master
4940 AWS_S3_BUCKET : ${{ secrets.AWS_S3_BUCKET_DOWNLOADS }}
5041 AWS_ACCESS_KEY_ID : ${{ secrets.S3_DOWNLOADS_AWS_ACCESS_KEY_ID }}
5142 AWS_SECRET_ACCESS_KEY : ${{ secrets.S3_DOWNLOADS_AWS_SECRET_ACCESS_KEY }}
52- AWS_REGION : ' us-west-1' # optional: defaults to us-east-1
53- SOURCE_DIR : ' artifact' # optional: defaults to entire repository
43+ AWS_REGION : " us-west-1" # optional: defaults to us-east-1
44+ SOURCE_DIR : " artifact" # optional: defaults to entire repository
5445 DEST_DIR : ${{ secrets.S3_AWS_PRODUCTS_FOLDER }}/$BUILD_NAME/$BUILD_VERSION
5546 - name : Send update to the store
5647 env :
5950 STORE_URL : ${{ secrets.THEMEISLE_STORE_URL }}
6051 GITHUB_TOKEN : ${{ secrets.BOT_TOKEN }}
6152 BUILD_VERSION : ${{ env.BUILD_VERSION }}
62- uses : Codeinwp/action-store-release@main
53+ uses : Codeinwp/action-store-release@main
0 commit comments