From 4e27a49fcf4109e13f806cb44910ba57cf01b3fc Mon Sep 17 00:00:00 2001 From: Aytac Kirmizi Date: Fri, 31 Mar 2023 10:08:13 +0200 Subject: [PATCH] **update** github actions --- .github/workflows/yarn-gulp.yml | 7 +++++-- gulpfile.js | 6 ++++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/yarn-gulp.yml b/.github/workflows/yarn-gulp.yml index d8c57a0..931d3ee 100644 --- a/.github/workflows/yarn-gulp.yml +++ b/.github/workflows/yarn-gulp.yml @@ -12,7 +12,8 @@ jobs: strategy: matrix: - node-version: [14.x, 16.x, 18.x] + node-version: 18 +# node-version: [14.x, 16.x, 18.x] steps: - uses: actions/checkout@v3 @@ -31,4 +32,6 @@ jobs: - name: Build & zip package run: yarn zip - + + - name: Release package + run: gulp release \ No newline at end of file diff --git a/gulpfile.js b/gulpfile.js index 99a3313..34929c9 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -19,8 +19,8 @@ const colorFunction = require('postcss-color-mod-function'); const cssnano = require('cssnano'); const easyimport = require('postcss-easy-import'); -const REPO = 'TryGhost/Casper'; -const REPO_READONLY = 'TryGhost/Casper'; +const REPO = 'tryghost/Casper'; +const REPO_READONLY = 'tryghost/Casper'; const CHANGELOG_PATH = path.join(process.cwd(), '.', 'changelog.md'); function serve(done) { @@ -113,6 +113,8 @@ exports.release = async () => { console.log(`\nCreating release for ${newVersion}...`); const githubToken = process.env.GST_TOKEN; + const repo_readonly = process.env.REPO_READONLY ?? REPO_READONLY; + const repo = process.env.REPO ?? REPO; if (!githubToken) { console.log('Please configure your environment with a GitHub token located in GST_TOKEN');