Skip to content

refactor(ci): fix npm workflows #4797

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Feb 3, 2022
Merged

refactor(ci): fix npm workflows #4797

merged 6 commits into from
Feb 3, 2022

Conversation

jsjoeio
Copy link
Contributor

@jsjoeio jsjoeio commented Jan 26, 2022

This fixes a couple issues with the npm workflows, mainly ensuring that we download the correct npm artifact before uploading to npm.

  • double-check everything
  • clean up code
  • use download-artifact action

Fixes #4790

@jsjoeio jsjoeio self-assigned this Jan 26, 2022
@jsjoeio jsjoeio temporarily deployed to CI January 26, 2022 22:56 Inactive
@jsjoeio jsjoeio temporarily deployed to CI January 26, 2022 22:59 Inactive
@github-actions
Copy link

github-actions bot commented Jan 26, 2022

✨ Coder.com for PR #4797 deployed! It will be updated on every commit.

@jsjoeio jsjoeio temporarily deployed to CI January 27, 2022 19:27 Inactive
@jsjoeio jsjoeio temporarily deployed to CI January 27, 2022 21:01 Inactive
@jsjoeio jsjoeio force-pushed the jsjoeio-fix-npm-workflows branch from 91fc1cc to ea161c2 Compare January 27, 2022 21:07
@jsjoeio jsjoeio temporarily deployed to CI January 27, 2022 21:07 Inactive
@codecov
Copy link

codecov bot commented Jan 27, 2022

Codecov Report

Merging #4797 (c44b961) into main (79412eb) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #4797   +/-   ##
=======================================
  Coverage   69.18%   69.18%           
=======================================
  Files          29       29           
  Lines        1652     1652           
  Branches      363      363           
=======================================
  Hits         1143     1143           
  Misses        432      432           
  Partials       77       77           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 79412eb...c44b961. Read the comment docs.

@jsjoeio jsjoeio temporarily deployed to CI January 27, 2022 21:18 Inactive
@jsjoeio jsjoeio marked this pull request as ready for review January 27, 2022 21:18
@jsjoeio jsjoeio requested a review from a team January 27, 2022 21:18
@jsjoeio jsjoeio temporarily deployed to CI January 27, 2022 21:40 Inactive
@jsjoeio jsjoeio temporarily deployed to CI January 27, 2022 22:00 Inactive
@jsjoeio jsjoeio temporarily deployed to CI January 27, 2022 22:44 Inactive
@jsjoeio jsjoeio temporarily deployed to CI January 27, 2022 23:12 Inactive
@jsjoeio jsjoeio temporarily deployed to CI January 27, 2022 23:33 Inactive
@jsjoeio jsjoeio temporarily deployed to CI January 27, 2022 23:41 Inactive
@jsjoeio jsjoeio temporarily deployed to CI January 28, 2022 17:48 Inactive
@jsjoeio jsjoeio temporarily deployed to CI January 28, 2022 18:45 Inactive
@jsjoeio jsjoeio temporarily deployed to CI January 28, 2022 18:49 Inactive
@jsjoeio jsjoeio temporarily deployed to CI January 28, 2022 19:14 Inactive
@jsjoeio jsjoeio temporarily deployed to CI January 28, 2022 19:26 Inactive
@jsjoeio jsjoeio temporarily deployed to npm January 28, 2022 19:36 Inactive
@jsjoeio jsjoeio marked this pull request as draft January 31, 2022 19:45
@jsjoeio jsjoeio force-pushed the jsjoeio-fix-npm-workflows branch from c7773f4 to 24c4b27 Compare January 31, 2022 20:44
@jsjoeio jsjoeio temporarily deployed to CI January 31, 2022 20:44 Inactive
This refactors the npm workflows to use the download-artifact GitHub Action. We
had problems in the past with our download_artifact custom bash function. This
also fixes an issue where we weren't downloading the correct artifacts when
publishing beta and dev tags to npm.
@jsjoeio jsjoeio force-pushed the jsjoeio-fix-npm-workflows branch from 24c4b27 to eed8d58 Compare January 31, 2022 20:50
@jsjoeio jsjoeio temporarily deployed to CI January 31, 2022 20:50 Inactive
@jsjoeio jsjoeio marked this pull request as ready for review January 31, 2022 20:51
@jsjoeio
Copy link
Contributor Author

jsjoeio commented Jan 31, 2022

@code-asher this is good to go now!

@jsjoeio jsjoeio temporarily deployed to CI January 31, 2022 23:14 Inactive
Copy link
Member

@code-asher code-asher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking really good! I am stoked about beginning the move to the download action.

@jsjoeio
Copy link
Contributor Author

jsjoeio commented Feb 1, 2022

Transitioning back to draft to address changes

@jsjoeio jsjoeio temporarily deployed to CI February 3, 2022 20:12 Inactive
@jsjoeio jsjoeio requested a review from code-asher February 3, 2022 20:12
@jsjoeio jsjoeio temporarily deployed to CI February 3, 2022 20:25 Inactive
@jsjoeio jsjoeio merged commit fd643dc into main Feb 3, 2022
@jsjoeio jsjoeio deleted the jsjoeio-fix-npm-workflows branch February 3, 2022 20:54
TinLe pushed a commit to TinLe/code-server that referenced this pull request Apr 23, 2022
* feat: refactor npm workflows to use download-artifact

This refactors the npm workflows to use the download-artifact GitHub Action. We
had problems in the past with our download_artifact custom bash function. This
also fixes an issue where we weren't downloading the correct artifacts when
publishing beta and dev tags to npm.

* fixup: remove unused env var

* fixup! add download-artifcat to npm-brew"

* fixup! remove unnecessary code comment

* fixup! move NPM_ENVIRONMENT logic to script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix issue with npm publish workflows
2 participants