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
Meta: move semantic-release from circle to actions #5514
Comments
|
I'm trying to work out where this fits in to our actions currently: We want it to only run once, e.g. on Node 12 on Linux only We want it to run on We want it to run only after build and test is completed. |
then we need to add a new we can add |
If it's a new job, does it execute within a new container and hence needs checkout + install + build first? |
jepp release:
name: release
needs: test
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master'
# tests shouldn't nee more than 10 min
timeout-minutes: 15
steps:
- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: 12
- name: Init platform
id: init
shell: bash
run: |
echo "::set-output name=yarn_cache::$(yarn cache dir)"
git config --global core.autocrlf false
git config --global core.symlinks true
git config --global user.email 'bot@renovateapp.com'
git config --global user.name 'Renovate Bot'
node --version
yarn --version
- uses: actions/checkout@v2
- name: Cache Yarn packages
id: yarn_cache_packages
uses: actions/cache@v1
with:
path: ${{ steps.init.outputs.yarn_cache }}
key: v1-${{ runner.os }}-yarn_cache-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
v1-${{ runner.os }}-yarn_cache-
- name: Cache node_modules
uses: actions/cache@v1
with:
path: node_modules
key: ${{ runner.os }}-${{ matrix.node-version }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-${{ matrix.node-version }}-yarn-
- run: yarn install --frozen-lockfile
- run: yarn build
- run: yarn semantic-release
- run: curl -X POST -d '{}' $NETLIFY_DEPLOY_WEBHOOK |
ok, env vars needs to be added from secrets |
added condition to job above |
Wondering if we want to use GitHub's native "release" concept (which never seemed to get much use from anyone, but maybe actions will change that) |
🎉 This issue has been resolved in version 19.140.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Let's move releasing to Actions and then deprecate CircleCI use.
Note: I don't want to use any third party action for this, because of the risk of it stealing credentials.
The text was updated successfully, but these errors were encountered: