From the course: GitHub Administration Cert Prep
Unlock this course with a free trial
Join today to access over 25,500 courses taught by industry experts.
Publish packages with GitHub Actions - GitHub Tutorial
From the course: GitHub Administration Cert Prep
Publish packages with GitHub Actions
Another important action of publishing packages is that you can do these with GitHub Actions. Let's take a look at a GitHub Actions here, where it is able to create and publish a Docker image automatically. You can see here, from this particular GitHub Action, that the release branch is going to be the branch that when you push something to it, it's going to run on the Ubuntu latest. It's going to use the Action's checkout version, in this case version 4. It's going to do an npm install and build the web pack, go ahead and go through all of the different things, and then at the very end, it will actually publish a package that is in fact the Docker image. So in general, what this means is that GitHub Actions allows automating the package publishing as part of CI/CD. So this is a new component of the CI/CD pipeline. The workflows can publish packages to GitHub packages after running tests on pushing to certain branches, and…