Skip to content

Commit 53baad4

Browse files
authored
Merge pull request #26 from arduino/develop
Fixing node version and sync package lock
2 parents 8b65d59 + 6895749 commit 53baad4

File tree

5 files changed

+4884
-115
lines changed

5 files changed

+4884
-115
lines changed

.github/workflows/build.yml

+13-97
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ on:
1111
pull_request:
1212
branches:
1313
- develop
14-
# schedule:
15-
# - cron: '0 3 * * *' # run every day at 3AM (https://docs.github.com/en/actions/reference/events-that-trigger-workflows#scheduled-events-schedule)
1614

1715
env:
1816
JOB_TRANSFER_ARTIFACT: build-artifacts
@@ -32,18 +30,18 @@ jobs:
3230

3331
steps:
3432
- name: Checkout
35-
uses: actions/checkout@v2
33+
uses: actions/checkout@v3
3634

37-
- name: Install Node.js 14.x
38-
uses: actions/setup-node@v1
35+
- name: Install Node.js 16.x
36+
uses: actions/setup-node@v3
3937
with:
4038
node-version: '14'
4139
registry-url: 'https://registry.npmjs.org'
4240

43-
- name: Install Python 2.7
44-
uses: actions/setup-python@v2
45-
with:
46-
python-version: '2.7'
41+
# - name: Install Python 2.7
42+
# uses: actions/setup-python@v3
43+
# with:
44+
# python-version: '2.7'
4745

4846
- name: Package
4947
shell: bash
@@ -82,7 +80,7 @@ jobs:
8280
npm run build
8381
8482
- name: Upload [GitHub Actions]
85-
uses: actions/upload-artifact@v2
83+
uses: actions/upload-artifact@v3
8684
with:
8785
name: ${{ env.JOB_TRANSFER_ARTIFACT }}
8886
path: dist
@@ -106,97 +104,27 @@ jobs:
106104
# name: Windows_X86-64_MSI
107105
- path: "*-win_x64.zip"
108106
name: Windows_X86-64_zip
109-
110-
# THIS IS MESSED UP
111-
# artifact:
112-
# - path: "*.AppImage*.zip"
113-
# name: Linux_X86-64
114-
# - path: "*-mac*.zip"
115-
# name: macOS
116107

117108
steps:
118109
- name: Download job transfer artifact
119-
uses: actions/download-artifact@v2
110+
uses: actions/download-artifact@v3
120111
with:
121112
name: ${{ env.JOB_TRANSFER_ARTIFACT }}
122113
path: ${{ env.JOB_TRANSFER_ARTIFACT }}
123-
114+
124115
- name: Upload tester build artifact
125-
uses: actions/upload-artifact@v2
116+
uses: actions/upload-artifact@v3
126117
with:
127118
name: ${{ matrix.artifact.name }}
128119
path: ${{ env.JOB_TRANSFER_ARTIFACT }}/${{ matrix.artifact.path }}
129120

130-
# changelog:
131-
# needs: build
132-
# runs-on: ubuntu-latest
133-
# outputs:
134-
# BODY: ${{ steps.changelog.outputs.BODY }}
135-
# steps:
136-
# - name: Checkout
137-
# uses: actions/checkout@v2
138-
# with:
139-
# fetch-depth: 0 # To fetch all history for all branches and tags.
140-
141-
# - name: Generate Changelog
142-
# id: changelog
143-
# env:
144-
# IS_RELEASE: ${{ startsWith(github.ref, 'refs/tags/') }}
145-
# run: |
146-
# export LATEST_TAG=$(git describe --abbrev=0)
147-
# export GIT_LOG=$(git log --pretty=" - %s [%h]" $LATEST_TAG..HEAD | sed 's/ *$//g')
148-
# if [ "$IS_RELEASE" = true ]; then
149-
# export BODY=$(echo -e "$GIT_LOG")
150-
# else
151-
# export LATEST_TAG_WITH_LINK=$(echo "[$LATEST_TAG](https://github.com/arduino/arduino-ide/releases/tag/$LATEST_TAG)")
152-
# if [ -z "$GIT_LOG" ]; then
153-
# export BODY="There were no changes since version $LATEST_TAG_WITH_LINK."
154-
# else
155-
# export BODY=$(echo -e "Changes since version $LATEST_TAG_WITH_LINK:\n$GIT_LOG")
156-
# fi
157-
# fi
158-
# echo -e "$BODY"
159-
# OUTPUT_SAFE_BODY="${BODY//'%'/'%25'}"
160-
# OUTPUT_SAFE_BODY="${OUTPUT_SAFE_BODY//$'\n'/'%0A'}"
161-
# OUTPUT_SAFE_BODY="${OUTPUT_SAFE_BODY//$'\r'/'%0D'}"
162-
# echo "::set-output name=BODY::$OUTPUT_SAFE_BODY"
163-
# echo "$BODY" > CHANGELOG.txt
164-
165-
# - name: Upload Changelog [GitHub Actions]
166-
# if: github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/main')
167-
# uses: actions/upload-artifact@v2
168-
# with:
169-
# name: ${{ env.JOB_TRANSFER_ARTIFACT }}
170-
# path: CHANGELOG.txt
171-
172-
# publish:
173-
# needs: changelog
174-
# if: github.repository == 'arduino/arduino-ide' && (github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/main'))
175-
# runs-on: ubuntu-latest
176-
# steps:
177-
# - name: Download [GitHub Actions]
178-
# uses: actions/download-artifact@v2
179-
# with:
180-
# name: ${{ env.JOB_TRANSFER_ARTIFACT }}
181-
# path: ${{ env.JOB_TRANSFER_ARTIFACT }}
182-
183-
# # - name: Publish Nightly [S3]
184-
# # uses: docker://plugins/s3
185-
# # env:
186-
# # PLUGIN_SOURCE: "${{ env.JOB_TRANSFER_ARTIFACT }}/*"
187-
# # PLUGIN_STRIP_PREFIX: "${{ env.JOB_TRANSFER_ARTIFACT }}/"
188-
# # PLUGIN_TARGET: "/arduino-ide/nightly"
189-
# # PLUGIN_BUCKET: ${{ secrets.DOWNLOADS_BUCKET }}
190-
# # AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
191-
# # AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
192-
193121
release:
194122
needs: build
195123
if: github.repository == 'arduino/lab-micropython-editor' && startsWith(github.ref, 'refs/tags/')
196124
runs-on: ubuntu-latest
197125
steps:
198126
- name: Download [GitHub Actions]
199-
uses: actions/download-artifact@v2
127+
uses: actions/download-artifact@v3
200128
with:
201129
name: ${{ env.JOB_TRANSFER_ARTIFACT }}
202130
path: ${{ env.JOB_TRANSFER_ARTIFACT }}
@@ -214,30 +142,18 @@ jobs:
214142
file: ${{ env.JOB_TRANSFER_ARTIFACT }}/*
215143
tag: ${{ github.ref }}
216144
file_glob: true
217-
# body: ${{ needs.changelog.outputs.BODY }}
218-
219-
# - name: Publish Release [S3]
220-
# uses: docker://plugins/s3
221-
# env:
222-
# PLUGIN_SOURCE: "${{ env.JOB_TRANSFER_ARTIFACT }}/*"
223-
# PLUGIN_STRIP_PREFIX: "${{ env.JOB_TRANSFER_ARTIFACT }}/"
224-
# PLUGIN_TARGET: "/arduino-ide"
225-
# PLUGIN_BUCKET: ${{ secrets.DOWNLOADS_BUCKET }}
226-
# AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
227-
# AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
228145

229146
clean:
230147
# This job must run after all jobs that use the transfer artifact.
231148
needs:
232149
- build
233-
# - publish
234150
- release
235151
- artifacts
236152
if: always() && needs.build.result != 'skipped'
237153
runs-on: ubuntu-latest
238154

239155
steps:
240156
- name: Remove unneeded job transfer artifact
241-
uses: geekyeggo/delete-artifact@v1
157+
uses: geekyeggo/delete-artifact@v2
242158
with:
243159
name: ${{ env.JOB_TRANSFER_ARTIFACT }}
File renamed without changes.

0 commit comments

Comments
 (0)