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');