diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml deleted file mode 100644 index f964ac940..000000000 --- a/.github/FUNDING.yml +++ /dev/null @@ -1 +0,0 @@ -open_collective: assemblyscript diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml deleted file mode 100644 index a8b2d99a4..000000000 --- a/.github/workflows/publish.yml +++ /dev/null @@ -1,67 +0,0 @@ -name: Publish -on: - # Note that the main branch will be used regardless of the branch chosen - # in the web interface. - workflow_dispatch: - schedule: - - cron: '0 0 * * *' -jobs: - release: - name: Packages - if: github.repository == 'AssemblyScript/assemblyscript' - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - with: - ref: main - fetch-depth: 0 - - uses: actions/setup-node@v3 - with: - node-version: current - - name: Install dependencies - run: | # npm>=7 is currently broken: https://github.com/npm/cli/issues/1973 - npm -g install npm@6 - npm -v - npm ci - - name: Build packages - run: | - VERSION=$(npx aspublish --version) - if [[ "$VERSION" == "" ]]; then - echo "Changes do not trigger a release" - elif [[ "$VERSION" != "0."* ]]; then - echo "Unexpected version: $VERSION" - exit 1 - else - echo "Building version: $VERSION" - npm version "$VERSION" --no-git-tag-version - npm run build - npm test - cd lib/loader - npm version "$VERSION" --no-git-tag-version - npm run build - npm test - cd ../rtrace - npm version "$VERSION" --no-git-tag-version - npm run build - npm test - cd ../.. - fi - - name: Publish packages - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - run: | - node ./scripts/prepublish - if [ $(node -pe "require('./package.json').version") != "0.0.0" ]; then - npx aspublish - fi - cd lib/loader - if [ $(node -pe "require('./package.json').version") != "0.0.0" ]; then - npm publish --access public - fi - cd ../rtrace - if [ $(node -pe "require('./package.json').version") != "0.0.0" ]; then - npm publish --access public - fi - cd ../.. - node ./scripts/prepublish --reset diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4ccc5889b..eff03abfd 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -2,7 +2,7 @@ name: Test on: push: branches: - - main + - next pull_request: jobs: check: