Skip to content

Commit 60867ad

Browse files
committed
Update release YML
1 parent 53107a0 commit 60867ad

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

.github/workflows/release.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ on:
77
jobs:
88
release:
99
name: New release
10-
runs-on: ubuntu-20.04
10+
runs-on: ubuntu-latest
1111
environment: live
1212
steps:
1313
- name: Checkout code
14-
uses: actions/checkout@v2
14+
uses: actions/checkout@v3
1515

1616
- name: Setup PHP
1717
uses: shivammathur/setup-php@v2
@@ -26,27 +26,27 @@ jobs:
2626
php_version: 8.0
2727
dev: no
2828

29-
- uses: actions/setup-node@v2
29+
- uses: actions/setup-node@v3
3030
with:
31-
node-version: '12'
31+
node-version: '16'
32+
cache: 'npm'
3233

33-
- name: Install npm dependencies & build for translation
34+
- name: Install npm dependencies
3435
run: |
35-
npm install -g npm@7
36+
npm install -g npm@latest
37+
npx update-browserslist-db@latest
3638
npm ci
37-
npm run build
3839
39-
# In order to run this WordPress also needs to be installed
40+
- name: Build assets for production
41+
run: npm run build
42+
4043
- name: Generate pot file
4144
run: |
4245
curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
4346
chmod +x wp-cli.phar
4447
mv wp-cli.phar /usr/local/bin/wp
4548
php -d xdebug.mode=off "$(which wp)" i18n make-pot ${{github.workspace}} ${{github.workspace}}/languages/blocks-for-github.pot --exclude="$(cat .distignore | tr "\n" "," | sed 's/,$/ /' | tr " " "\n"),src/**/*.js,*.js.map"
4649
47-
- name: Build assets for production
48-
run: npm run build
49-
5050
- name: WordPress Plugin Deploy
5151
id: deploy
5252
uses: 10up/action-wordpress-plugin-deploy@stable

0 commit comments

Comments
 (0)